Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/pr/182'
Browse files Browse the repository at this point in the history
* origin/pr/182:
  updater: cleanup - Make pacman cleanup work

Pull request description:

`pacman --noconfirm -Scc` defaults to No. So switch to `-Sc`.
  • Loading branch information
marmarek committed Feb 14, 2025
2 parents 88dffc6 + 8afa439 commit 06111b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vmupdate/agent/source/pacman/pacman_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def clean(self) -> int:
Clean cache files of package manager.
Should return 0 on success or EXIT.ERR_VM_CLEANUP otherwise.
"""
cmd = [self.package_manager, "-Scc"] # consider -Sc
cmd = [self.package_manager, "--noconfirm", "-Sc"]
result = self.run_cmd(cmd, realtime=False)
return_code = EXIT.ERR_VM_CLEANUP if result.code != 0 else 0
return return_code

0 comments on commit 06111b1

Please sign in to comment.