diff options
author | Thierry Vignaud <tv@mandriva.org> | 2010-01-21 22:43:23 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2010-01-21 22:43:23 +0000 |
commit | 93cab6b8c37769a8af06487b07107f5fb53c2ad1 (patch) | |
tree | 2f670c3370318283dbdd5c7c73ad6525ab8e1f7a | |
parent | 2394a2cc0d73651b6716c9bf32c810899e37413d (diff) | |
download | mgaonline-93cab6b8c37769a8af06487b07107f5fb53c2ad1.tar mgaonline-93cab6b8c37769a8af06487b07107f5fb53c2ad1.tar.gz mgaonline-93cab6b8c37769a8af06487b07107f5fb53c2ad1.tar.bz2 mgaonline-93cab6b8c37769a8af06487b07107f5fb53c2ad1.tar.xz mgaonline-93cab6b8c37769a8af06487b07107f5fb53c2ad1.zip |
we need an URL too
-rwxr-xr-x | mdkapplet-extended-maintenance-helper | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mdkapplet-extended-maintenance-helper b/mdkapplet-extended-maintenance-helper index e23d7957..df872015 100755 --- a/mdkapplet-extended-maintenance-helper +++ b/mdkapplet-extended-maintenance-helper @@ -43,15 +43,15 @@ use HTTP::Request::Common; use HTTP::Request; use interactive::gtk; -my $version; foreach my $opt (@ARGV) { if ($opt =~ /--(rpm-root|urpmi-root)=(.*)/) { $::rpmdrake_options{$1}[0] = $2; - } else { - $version = $opt; + undef $opt; } } -$version or die "usage: $0 <distrib_version>\n"; +my ($version, $url) = @ARGV; + +$version or die "usage: $0 <distrib_version> <url>\n"; # make it work on 2008.1: eval { interactive::gtk::add_padding(Gtk2::Label->new) }; |