diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-08-07 12:38:06 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-08-07 12:38:06 +0000 |
commit | d46aaa949af55ef1fc03263a95d280598e332cd6 (patch) | |
tree | 20bae1ec31d9a7ed69aaf79225430cbcb8ec0d3e | |
parent | 1def9ab881663e648088f4f05c6b0fc04443ed23 (diff) | |
download | rpmdrake-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-- | NEWS | 2 | ||||
-rwxr-xr-x | gurpmi.addmedia | 4 |
2 files changed, 4 insertions, 2 deletions
@@ -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; |