Skip to content

Commit 06111b1

Browse files
committed
Merge remote-tracking branch 'origin/pr/182'
* origin/pr/182: updater: cleanup - Make pacman cleanup work Pull request description: `pacman --noconfirm -Scc` defaults to No. So switch to `-Sc`.
2 parents 88dffc6 + 8afa439 commit 06111b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vmupdate/agent/source/pacman/pacman_cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def clean(self) -> int:
7272
Clean cache files of package manager.
7373
Should return 0 on success or EXIT.ERR_VM_CLEANUP otherwise.
7474
"""
75-
cmd = [self.package_manager, "-Scc"] # consider -Sc
75+
cmd = [self.package_manager, "--noconfirm", "-Sc"]
7676
result = self.run_cmd(cmd, realtime=False)
7777
return_code = EXIT.ERR_VM_CLEANUP if result.code != 0 else 0
7878
return return_code

0 commit comments

Comments
 (0)