From 721b0248e4154cc474c9b1d2fbb2c0e8c83af6f0 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 28 Feb 2006 12:18:31 +0000 Subject: bug: on update, we keep the option and we name the new repositery with the option name (eg "--update" :-() --- gurpmi.addmedia | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gurpmi.addmedia') 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) { -- cgit v1.2.1