aboutsummaryrefslogtreecommitdiffstats
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
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
-rw-r--r--NEWS2
-rwxr-xr-xgurpmi.addmedia4
2 files changed, 4 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index cac015bb..28669652 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,5 @@
+- gurpmi.addmedia:
+ o fix displaying --help
- rpmdrake:
o update GUI package list
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;