aboutsummaryrefslogtreecommitdiffstats
path: root/gurpmi.addmedia
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-08-07 12:38:06 +0000
committerThierry Vignaud <tv@mandriva.org>2008-08-07 12:38:06 +0000
commitd46aaa949af55ef1fc03263a95d280598e332cd6 (patch)
tree20bae1ec31d9a7ed69aaf79225430cbcb8ec0d3e /gurpmi.addmedia
parent1def9ab881663e648088f4f05c6b0fc04443ed23 (diff)
downloadrpmdrake-d46aaa949af55ef1fc03263a95d280598e332cd6.tar
rpmdrake-d46aaa949af55ef1fc03263a95d280598e332cd6.tar.gz
rpmdrake-d46aaa949af55ef1fc03263a95d280598e332cd6.tar.bz2
rpmdrake-d46aaa949af55ef1fc03263a95d280598e332cd6.tar.xz
rpmdrake-d46aaa949af55ef1fc03263a95d280598e332cd6.zip
fix displaying --help by parsing @ARGV before rpmdrake::init does
Diffstat (limited to 'gurpmi.addmedia')
-rwxr-xr-xgurpmi.addmedia4
1 files changed, 2 insertions, 2 deletions
diff --git a/gurpmi.addmedia b/gurpmi.addmedia
index 9358e2e4..cdd0890e 100755
--- a/gurpmi.addmedia
+++ b/gurpmi.addmedia
@@ -23,8 +23,6 @@
# $Id$
use strict;
-use Rpmdrake::init;
-use Rpmdrake::open_db;
BEGIN {
@ARGV == 0 || "@ARGV" =~ /-h/ and do {
@@ -45,6 +43,8 @@ and [options] are from
exit(0);
};
}
+use Rpmdrake::init;
+use Rpmdrake::open_db;
use lib qw(/usr/lib/libDrakX);
use urpm::media;