aboutsummaryrefslogtreecommitdiffstats
path: root/gurpmi.addmedia
diff options
context:
space:
mode:
Diffstat (limited to 'gurpmi.addmedia')
-rwxr-xr-xgurpmi.addmedia2
1 files changed, 1 insertions, 1 deletions
diff --git a/gurpmi.addmedia b/gurpmi.addmedia
index a499fff9..5d86109e 100755
--- a/gurpmi.addmedia
+++ b/gurpmi.addmedia
@@ -62,7 +62,7 @@ if (@ARGV == 1 && $ARGV[0] =~ /\.urpmi-media$/) {
my $update = 0;
if ($ARGV[0] =~ /^-?-update/) {
$update = 1;
- unshift @ARGV;
+ shift @ARGV;
}
my ($name, $url, $with, $with_hdlist) = @ARGV;
if ($url !~ m,^(file://|ftp://|http://|removable://), || $with && !$with_hdlist) {