aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xrpmdrake16
1 files changed, 7 insertions, 9 deletions
diff --git a/rpmdrake b/rpmdrake
index c4f99a47..7ead0af2 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -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}};