diff options
-rwxr-xr-x | rpmdrake | 16 |
1 files changed, 7 insertions, 9 deletions
@@ -1501,15 +1501,13 @@ sub get_pkgs { }; - if (!$urpm) { - $urpm ||= urpm->new; - $urpm->{fatal} = $fatal_handler; - my $media = ref $options{media} ? join(',', @{$options{media}}) : ''; - $urpm->configure(media => $media); - if ($error_happened) { - touch('/etc/urpmi/urpmi.cfg'); - exec('edit-urpm-sources.pl'); - } + $urpm ||= urpm->new; + $urpm->{fatal} = $fatal_handler; + my $media = ref $options{media} ? join(',', @{$options{media}}) : ''; + $urpm->configure(media => $media); + if ($error_happened) { + touch('/etc/urpmi/urpmi.cfg'); + exec('edit-urpm-sources.pl'); } my $statedir = $urpm->{statedir}; @update_medias = grep { !$_->{ignore} && $_->{update} } @{$urpm->{media}}; |