X Tutup
Skip to content

Commit 678f729

Browse files
Fixing syntax for upgrade action on Arch Linux provisioner
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
1 parent a6f19fa commit 678f729

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

libmachine/provision/arch.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,11 @@ func (provisioner *ArchProvisioner) Package(name string, action pkgaction.Packag
4343
updateMetadata := true
4444

4545
switch action {
46-
case pkgaction.Install:
46+
case pkgaction.Install, pkgaction.Upgrade:
4747
packageAction = "S"
4848
case pkgaction.Remove:
4949
packageAction = "R"
5050
updateMetadata = false
51-
case pkgaction.Upgrade:
52-
packageAction = "U"
5351
}
5452

5553
switch name {

0 commit comments

Comments
 (0)
X Tutup