Skip to content

Commit

Permalink
archlinux: fix package upgrade command handling (#768)
Browse files Browse the repository at this point in the history
pacman uses `-u` instead of `upgrade` to trigger a system upgrade, fix
the command handling so this is properly accounted for. as is, the
resulting command attempts to install a (non-existent) `upgrade` package

Co-authored-by: Rick Harding <rharding@mitechie.com>
  • Loading branch information
baod-rate and mitechie committed Jan 12, 2021
1 parent 2bfa461 commit 2b2c7f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cloudinit/distros/arch.py
Expand Up @@ -152,6 +152,8 @@ def package_command(self, command, args=None, pkgs=None):
elif args and isinstance(args, list):
cmd.extend(args)

if command == "upgrade":
command = "-u"
if command:
cmd.append(command)

Expand Down
1 change: 1 addition & 0 deletions tools/.github-cla-signers
Expand Up @@ -26,6 +26,7 @@ nishigori
olivierlemasle
omBratteng
onitake
qubidt
riedel
slyon
smoser
Expand Down

0 comments on commit 2b2c7f3

Please sign in to comment.