aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-07-02 07:59:01 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-07-02 07:59:01 +0000
commit621cebed9fab3080aa064bab7ac8d5eea0440a46 (patch)
tree4b571b442c09cc7ee12c5d504ac6178d0e7c0d56
parent0f8a019a045eedcbe204c510bd1ab28d1ee9f771 (diff)
downloadrpmdrake-621cebed9fab3080aa064bab7ac8d5eea0440a46.tar
rpmdrake-621cebed9fab3080aa064bab7ac8d5eea0440a46.tar.gz
rpmdrake-621cebed9fab3080aa064bab7ac8d5eea0440a46.tar.bz2
rpmdrake-621cebed9fab3080aa064bab7ac8d5eea0440a46.tar.xz
rpmdrake-621cebed9fab3080aa064bab7ac8d5eea0440a46.zip
MandrakeUpdate wasn't listing the packages for which there was no
entry in the description file (bug #10176)
-rwxr-xr-xrpmdrake8
1 files changed, 6 insertions, 2 deletions
diff --git a/rpmdrake b/rpmdrake
index 9af16e23..da19cdb1 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -448,8 +448,11 @@ sub run_treeview_dialog {
} else {
my @keys = keys %$pkgs;
if ($MODE eq 'update') {
- @keys = grep { my ($name) = split_fullname($_);
- member($descriptions->{$name}{importance}, @$mandrakeupdate_wanted_categories) } @keys;
+ @keys = grep {
+ my ($name) = split_fullname($_);
+ member($descriptions->{$name}{importance}, @$mandrakeupdate_wanted_categories)
+ || ! $descriptions->{$name}{importance}
+ } @keys;
if (@keys == 0) {
$add_node->('', N("(none)"), { nochild => 1 });
my $explanation_only_once if 0;
@@ -1075,6 +1078,7 @@ Then, restart MandrakeUpdate.")), myexit(-1);
}
my ($cur, $section);
+ #- parse the description file
foreach (map { cat_("$statedir/descriptions.$_->{name}"), '%package dummy' } @update_medias) {
/^%package (.+)/ and do {
exists $cur->{importance} && !member($cur->{importance}, qw(security bugfix)) and $cur->{importance} = 'normal';