aboutsummaryrefslogtreecommitdiffstats
path: root/gurpmi.addmedia
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-09-14 13:42:52 +0000
committerThierry Vignaud <tv@mandriva.org>2007-09-14 13:42:52 +0000
commit7984fc31a6dc2c887c6ae50f6617500529526980 (patch)
tree0578d851480427748ae841d8b43be714a944b477 /gurpmi.addmedia
parent10a74e6a8c0c9b9a92ebd0a5a68b599c064d024c (diff)
downloadrpmdrake-7984fc31a6dc2c887c6ae50f6617500529526980.tar
rpmdrake-7984fc31a6dc2c887c6ae50f6617500529526980.tar.gz
rpmdrake-7984fc31a6dc2c887c6ae50f6617500529526980.tar.bz2
rpmdrake-7984fc31a6dc2c887c6ae50f6617500529526980.tar.xz
rpmdrake-7984fc31a6dc2c887c6ae50f6617500529526980.zip
reuse fast_open_urpmi_db()
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 e6b926a8..a2ba4722 100755
--- a/gurpmi.addmedia
+++ b/gurpmi.addmedia
@@ -23,6 +23,7 @@
# $Id$
use strict;
+use Rpmdrake::open_db;
BEGIN {
@ARGV == 0 || "@ARGV" =~ /-h/ and do {
@@ -110,8 +111,7 @@ to your system from that new medium.", $names[0])
yesno => 1) or myexit(-1);
};
-my $urpm = urpm->new;
-urpm::media::read_config($urpm);
+my $urpm = fast_open_urpmi_db();
my $success = 1;
foreach (@addmedia_args) {
#- NB: that short circuits