diff --git a/subprojects/container-runtime/populate-depot.py b/subprojects/container-runtime/populate-depot.py index ee74b5ae1c78dd1bd28e676875517fe66c645005..eb259707a477df30d53d478a1631fb27bdc35946 100755 --- a/subprojects/container-runtime/populate-depot.py +++ b/subprojects/container-runtime/populate-depot.py @@ -1036,6 +1036,12 @@ class Main: os.chmod(os.path.join(self.depot, 'run-in-' + runtime.name), 0o755) + shutil.copy2( + os.path.join(self.depot, 'run-in-' + runtime.name), + os.path.join(self.depot, 'run'), + ) + os.chmod(os.path.join(self.depot, 'run'), 0o755) + comment = ', '.join(sorted(runtime_files)) if runtime.path and not runtime.official: @@ -1105,12 +1111,6 @@ class Main: vdf.dump(content, writer, pretty=True, escaped=True) - shutil.copy2( - os.path.join(self.depot, 'run-in-' + runtime.name), - os.path.join(self.depot, 'run'), - ) - os.chmod(os.path.join(self.depot, 'run'), 0o755) - self.write_component_versions() def write_component_versions(self) -> None: