aboutsummaryrefslogtreecommitdiffstats
path: root/gurpmi.addmedia
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-03-28 11:06:03 +0000
committerThierry Vignaud <tv@mandriva.org>2008-03-28 11:06:03 +0000
commit277c17ac4e4b4e493ad22a794fe730392f9451ff (patch)
tree442a7491a582d1ab4e9eee98f6dd3bb4bced9574 /gurpmi.addmedia
parent8c2d6b960b796c258ceb62312e0813b16dbc0861 (diff)
downloadrpmdrake-277c17ac4e4b4e493ad22a794fe730392f9451ff.tar
rpmdrake-277c17ac4e4b4e493ad22a794fe730392f9451ff.tar.gz
rpmdrake-277c17ac4e4b4e493ad22a794fe730392f9451ff.tar.bz2
rpmdrake-277c17ac4e4b4e493ad22a794fe730392f9451ff.tar.xz
rpmdrake-277c17ac4e4b4e493ad22a794fe730392f9451ff.zip
read config in order not to garbage ~/.rpmdrake (because myexit() calls writeconf())
Diffstat (limited to 'gurpmi.addmedia')
-rwxr-xr-xgurpmi.addmedia2
1 files changed, 2 insertions, 0 deletions
diff --git a/gurpmi.addmedia b/gurpmi.addmedia
index a4a5c4ad..e4670381 100755
--- a/gurpmi.addmedia
+++ b/gurpmi.addmedia
@@ -58,6 +58,8 @@ use Getopt::Long;
use ugtk2 qw(:all);
$::isStandalone = 1;
+readconf();
+
my $fromfile;
if (@ARGV == 1 && $ARGV[0] =~ /\.urpmi-media$/) {
@ARGV = map { s/^\s*//; s/\s*$//; $_ } split /\n/, cat_($ARGV[0]);