summaryrefslogtreecommitdiff
path: root/cloudinit
diff options
context:
space:
mode:
authorBao Trinh <github@baodtrinh.com>2021-01-12 10:47:37 -0600
committerGitHub <noreply@github.com>2021-01-12 11:47:37 -0500
commit2b2c7f391140cdf268a62ddca0c40bc2e01017ea (patch)
treec034e8e305b445100d14acf061c27b01419d66be /cloudinit
parent2bfa461b01b14fb9fac1a3c6bee400bb4e549f81 (diff)
downloadvyos-cloud-init-2b2c7f391140cdf268a62ddca0c40bc2e01017ea.tar.gz
vyos-cloud-init-2b2c7f391140cdf268a62ddca0c40bc2e01017ea.zip
archlinux: fix package upgrade command handling (#768)
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>
Diffstat (limited to 'cloudinit')
-rw-r--r--cloudinit/distros/arch.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/cloudinit/distros/arch.py b/cloudinit/distros/arch.py
index 967be168..378a6daa 100644
--- a/cloudinit/distros/arch.py
+++ b/cloudinit/distros/arch.py
@@ -152,6 +152,8 @@ class Distro(distros.Distro):
elif args and isinstance(args, list):
cmd.extend(args)
+ if command == "upgrade":
+ command = "-u"
if command:
cmd.append(command)