diff options
Diffstat (limited to 'edit-urpm-sources.pl')
-rwxr-xr-x | edit-urpm-sources.pl | 5 |
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}}; }; |