aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake/edit_urpm_sources.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Rpmdrake/edit_urpm_sources.pm')
-rwxr-xr-xRpmdrake/edit_urpm_sources.pm7
1 files changed, 6 insertions, 1 deletions
diff --git a/Rpmdrake/edit_urpm_sources.pm b/Rpmdrake/edit_urpm_sources.pm
index 9073815e..44253544 100755
--- a/Rpmdrake/edit_urpm_sources.pm
+++ b/Rpmdrake/edit_urpm_sources.pm
@@ -96,7 +96,12 @@ sub remove_row {
}
sub easy_add_callback() {
- $urpm ||= urpm->new; # when called on early init by rpmdrake
+ # when called on early init by rpmdrake
+ if (!$urpm) {
+ $urpm = urpm->new;
+ urpm::media::read_config($urpm);
+ }
+
#- cooker and community don't have update sources
my $arch = arch();
$arch = 'i586' if $arch =~ /^i.86$/;