aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xMandrivaUpdate3
1 files changed, 2 insertions, 1 deletions
diff --git a/MandrivaUpdate b/MandrivaUpdate
index 69676e72..d3106643 100755
--- a/MandrivaUpdate
+++ b/MandrivaUpdate
@@ -62,7 +62,8 @@ sub refresh_packages_list {
# don't select kernel*-latest by default and the kernels they require:
if (!$initialized) {
$pkgs->{$_}{selected} = 0 foreach @requested;
- toggle($list, grep { !$pkgs->{$_}{pkg}->flag_skip } @requested);
+ my @selectable = grep { !$pkgs->{$_}{pkg}->flag_skip } @requested;
+ toggle($list, @selectable) if @selectable;
$initialized = 1;
}