aboutsummaryrefslogtreecommitdiffstats
path: root/gurpmi.addmedia
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2006-02-28 12:18:31 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2006-02-28 12:18:31 +0000
commit721b0248e4154cc474c9b1d2fbb2c0e8c83af6f0 (patch)
tree20b31ba1434e94cfa4daa97368fc08aae0fbcdd8 /gurpmi.addmedia
parentcf08b05768d9a8a6f857bb5fc948e0df7a492fe8 (diff)
downloadrpmdrake-721b0248e4154cc474c9b1d2fbb2c0e8c83af6f0.tar
rpmdrake-721b0248e4154cc474c9b1d2fbb2c0e8c83af6f0.tar.gz
rpmdrake-721b0248e4154cc474c9b1d2fbb2c0e8c83af6f0.tar.bz2
rpmdrake-721b0248e4154cc474c9b1d2fbb2c0e8c83af6f0.tar.xz
rpmdrake-721b0248e4154cc474c9b1d2fbb2c0e8c83af6f0.zip
bug: on update, we keep the option and we name the new repositery with the option name (eg "--update" :-()
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) {