diff options
Diffstat (limited to 'gurpmi.addmedia')
-rwxr-xr-x | gurpmi.addmedia | 4 |
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 |