summaryrefslogtreecommitdiffstats
path: root/mdkapplet-extended-maintenance-helper
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2010-01-21 22:43:23 +0000
committerThierry Vignaud <tv@mandriva.org>2010-01-21 22:43:23 +0000
commit93cab6b8c37769a8af06487b07107f5fb53c2ad1 (patch)
tree2f670c3370318283dbdd5c7c73ad6525ab8e1f7a /mdkapplet-extended-maintenance-helper
parent2394a2cc0d73651b6716c9bf32c810899e37413d (diff)
downloadmgaonline-93cab6b8c37769a8af06487b07107f5fb53c2ad1.tar
mgaonline-93cab6b8c37769a8af06487b07107f5fb53c2ad1.tar.gz
mgaonline-93cab6b8c37769a8af06487b07107f5fb53c2ad1.tar.bz2
mgaonline-93cab6b8c37769a8af06487b07107f5fb53c2ad1.tar.xz
mgaonline-93cab6b8c37769a8af06487b07107f5fb53c2ad1.zip
we need an URL too
Diffstat (limited to 'mdkapplet-extended-maintenance-helper')
-rwxr-xr-xmdkapplet-extended-maintenance-helper8
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) };