diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2003-01-22 19:19:44 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2003-01-22 19:19:44 +0000 |
commit | ff1337faad66dfbf06ef34b51f24bbeb631a07bf (patch) | |
tree | f4328b025f59a1c74f5b3d6fc1cfdb9e7d34fc16 | |
parent | 186c39be47740de40170f40bad3b69615aa8753f (diff) | |
download | rpmdrake-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)
-rwxr-xr-x | edit-urpm-sources.pl | 5 | ||||
-rw-r--r-- | rpmdrake.spec | 7 |
2 files changed, 9 insertions, 3 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}}; }; diff --git a/rpmdrake.spec b/rpmdrake.spec index bc30af07..7d060117 100644 --- a/rpmdrake.spec +++ b/rpmdrake.spec @@ -8,7 +8,7 @@ %define name rpmdrake %define version 2.1 -%define release 3mdk +%define release 4mdk Name: %{name} Version: %{version} @@ -116,6 +116,11 @@ rm -rf $RPM_BUILD_ROOT %{perl_vendorarch}/*.pm %changelog +* Wed Jan 22 2003 Guillaume Cottenceau <gc@mandrakesoft.com> 2.1-4mdk +- edit-urpm-sources: + - fix wrong display of medium as "enabled", after adding a medium + that has problems and is hence automatically disabled (#995) + * Tue Jan 21 2003 Guillaume Cottenceau <gc@mandrakesoft.com> 2.1-3mdk - rpmdrake: - fix "update sources" dialog which didn't update the asked mediums |