aboutsummaryrefslogtreecommitdiffstats
path: root/edit-urpm-sources.pl
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2003-01-22 19:19:44 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2003-01-22 19:19:44 +0000
commitff1337faad66dfbf06ef34b51f24bbeb631a07bf (patch)
treef4328b025f59a1c74f5b3d6fc1cfdb9e7d34fc16 /edit-urpm-sources.pl
parent186c39be47740de40170f40bad3b69615aa8753f (diff)
downloadrpmdrake-ff1337faad66dfbf06ef34b51f24bbeb631a07bf.tar
rpmdrake-ff1337faad66dfbf06ef34b51f24bbeb631a07bf.tar.gz
rpmdrake-ff1337faad66dfbf06ef34b51f24bbeb631a07bf.tar.bz2
rpmdrake-ff1337faad66dfbf06ef34b51f24bbeb631a07bf.tar.xz
rpmdrake-ff1337faad66dfbf06ef34b51f24bbeb631a07bf.zip
fix wrong display of medium as "enabled", after adding a medium
that has problems and is hence automatically disabled (#995)
Diffstat (limited to 'edit-urpm-sources.pl')
-rwxr-xr-xedit-urpm-sources.pl5
1 files changed, 3 insertions, 2 deletions
diff --git a/edit-urpm-sources.pl b/edit-urpm-sources.pl
index 691b3a25..587017c9 100755
--- a/edit-urpm-sources.pl
+++ b/edit-urpm-sources.pl
@@ -41,8 +41,7 @@ sub add_medium_and_check {
$urpm->write_config;
}
-my $urpm = urpm->new;
-$urpm->read_config;
+my $urpm;
my ($mainw, $remove, $edit, $list_tv);
@@ -263,6 +262,8 @@ sub mainwindow {
});
my $reread_media = sub {
+ $urpm = urpm->new;
+ $urpm->read_config;
$list->clear;
$list->append_set([ 0 => !$_->{ignore}, 1 => $_->{name} ])->free foreach @{$urpm->{media}};
};