aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2006-11-23 17:41:38 +0000
committerThierry Vignaud <tv@mandriva.org>2006-11-23 17:41:38 +0000
commit3f1eb3643e784ce974bdfadfbbf01f4e532f2c87 (patch)
treeef623648f8ea6dfe5a8ec135ab662c37f5c3c6fc
parent09eb3c3297b374f639c709b69b9653fef9af7d88 (diff)
downloadrpmdrake-3f1eb3643e784ce974bdfadfbbf01f4e532f2c87.tar
rpmdrake-3f1eb3643e784ce974bdfadfbbf01f4e532f2c87.tar.gz
rpmdrake-3f1eb3643e784ce974bdfadfbbf01f4e532f2c87.tar.bz2
rpmdrake-3f1eb3643e784ce974bdfadfbbf01f4e532f2c87.tar.xz
rpmdrake-3f1eb3643e784ce974bdfadfbbf01f4e532f2c87.zip
adapt to new urpmi API
-rwxr-xr-xgurpmi.addmedia3
1 files changed, 2 insertions, 1 deletions
diff --git a/gurpmi.addmedia b/gurpmi.addmedia
index e2634d7b..a530e691 100755
--- a/gurpmi.addmedia
+++ b/gurpmi.addmedia
@@ -42,6 +42,7 @@ and [options] are from
}
use lib qw(/usr/lib/libDrakX);
+use urpm;
use common;
require_root_capability();
@@ -109,7 +110,7 @@ to your system from that new medium.", $names[0])
};
my $urpm = urpm->new;
-$urpm->read_config;
+urpm::media::read_config($urpm);
my $success = 1;
for (@addmedia_args) {
#- NB: that short circuits