Skip to content

Commit f642a78

Browse files
authored
Docker.pm: Also handle 'zypper update' (#1104)
For PTFs we often want to ensure we are only updating the packages and not adding new ones.
1 parent 09e6b8c commit f642a78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Build/Docker.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ sub cmd_zypper {
116116
shift @args;
117117
}
118118
return unless @args;
119-
if ($args[0] eq 'in' || $args[0] eq 'install') {
119+
if ($args[0] eq 'in' || $args[0] eq 'install' || $args[0] eq 'up' || $args[0] eq 'update') {
120120
shift @args;
121121
while (@args && $args[0] =~ /^-/) {
122122
shift @args if $args[0] =~ /^--(?:from|repo|type)$/ || $args[0] =~ /^-[tr]$/;

0 commit comments

Comments
 (0)