aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaouda Lo <daouda@mandriva.com>2005-01-19 20:58:52 +0000
committerDaouda Lo <daouda@mandriva.com>2005-01-19 20:58:52 +0000
commitecd6bdbe529ff98e817ff9f07cf360d1c25b456f (patch)
tree8ace7f53a3693f949d007bfd27a542fb311902a0
parent3fb78ed7642c73dcaba340ef4ed38954979b8fbe (diff)
downloadrpmdrake-ecd6bdbe529ff98e817ff9f07cf360d1c25b456f.tar
rpmdrake-ecd6bdbe529ff98e817ff9f07cf360d1c25b456f.tar.gz
rpmdrake-ecd6bdbe529ff98e817ff9f07cf360d1c25b456f.tar.bz2
rpmdrake-ecd6bdbe529ff98e817ff9f07cf360d1c25b456f.tar.xz
rpmdrake-ecd6bdbe529ff98e817ff9f07cf360d1c25b456f.zip
- default case when the 2 prefilled lists (selected and unselected) of
updates are empty.
-rwxr-xr-xrpmdrake10
1 files changed, 6 insertions, 4 deletions
diff --git a/rpmdrake b/rpmdrake
index dedfc357..1affde0d 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -1269,10 +1269,12 @@ Then, restart %s.", $rpmdrake::myname_update)), myexit(-1);
$pkg->flag_installed or next;
any { $pkg->id >= $_->{start} && $pkg->id <= $_->{end} } @update_medias or next;
if ($options{'pkg-sel'} || $options{'pkg-nosel'}) {
- member(urpm_name($pkg), @{$options{'pkg-sel'}}, @{$options{'pkg-nosel'}}) or next;
- member(urpm_name($pkg), @{$options{'pkg-sel'}}) and $selected = 1;
- }
- }
+ if ($#{$options{'pkg-sel'}} != -1 || $#{$option{'pkg-nosel'}} != -1) {
+ member(urpm_name($pkg), @{$options{'pkg-sel'}}, @{$options{'pkg-nosel'}}) or next;
+ member(urpm_name($pkg), @{$options{'pkg-sel'}}) and $selected = 1;
+ }
+ }
+ }
$installable_pkgs{my_fullname($pkg)} = { selected => $selected, pkg => $pkg };
}
if ($options{'pkg-sel'} || $options{'pkg-nosel'}) {