summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmdkapplet7
1 files changed, 5 insertions, 2 deletions
diff --git a/mdkapplet b/mdkapplet
index ee8a75c0..ff291874 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -597,8 +597,11 @@ sub update_backport_media {
my ($urpm) = @_;
# update inactive backport media:
my @inactive_backport_media = Rpmdrake::open_db::get_inactive_backport_media($urpm);
- log::explanations("updating inactive backport media " . join(', ', @inactive_backport_media)) if @inactive_backport_media;
- run_program::run('urpmi.update', if_($root, "--urpmi-root=$root"), $_) foreach @inactive_backport_media;
+ return if !@inactive_backport_media;
+ log::explanations("updating inactive backport media " . join(', ', @inactive_backport_media));
+ foreach (@inactive_backport_media) {
+ run_program::run('urpmi.update', if_($root, "--urpmi-root=$root"), $_);
+ }
}
sub silentCheck() {