fix: merge gitlab (keep -Sy with rationale comment)

This commit is contained in:
2026-07-07 19:34:25 +02:00
@@ -344,7 +344,8 @@ class PMPacman(PackageManager):
if from_local: if from_local:
command.append("-U") command.append("-U")
else: else:
command.append("-S") # -Sy is intentional: fresh chroot has no pacman DB, must sync first
command.append("-Sy")
command.append("--overwrite=*") command.append("--overwrite=*")
command += pkgs command += pkgs
@@ -388,9 +389,9 @@ class PMPacman(PackageManager):
path = join(rootdir, "run") path = join(rootdir, "run")
os.chmod(path, 0o755) os.chmod(path, 0o755)
def copy_file(self, rootdir, f): def copy_file(self, rootdir, relative_path):
if os.path.exists(join("/",f)): if os.path.exists(join("/", relative_path)):
shutil.copy2(join("/",f), join(rootdir, f)) shutil.copy2(join("/", relative_path), join(rootdir, relative_path))
def init_keyring(self): def init_keyring(self):
target_env_process_output(["pacman-key", "--init"]) target_env_process_output(["pacman-key", "--init"])