diff options
author | Daouda Lo <daouda@mandriva.com> | 2005-01-19 20:58:52 +0000 |
---|---|---|
committer | Daouda Lo <daouda@mandriva.com> | 2005-01-19 20:58:52 +0000 |
commit | ecd6bdbe529ff98e817ff9f07cf360d1c25b456f (patch) | |
tree | 8ace7f53a3693f949d007bfd27a542fb311902a0 | |
parent | 3fb78ed7642c73dcaba340ef4ed38954979b8fbe (diff) | |
download | rpmdrake-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-x | rpmdrake | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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'}) { |