aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2002-08-05 21:11:30 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2002-08-05 21:11:30 +0000
commit8c12cc1b360fad7c36f2f2a2435bb2457c630db3 (patch)
tree5f7d1cb7a162e54f432a067e04fc4cdb3d62d86b
parentf821deebc7430530adcad45e2316bec90d971f78 (diff)
downloadrpmdrake-8c12cc1b360fad7c36f2f2a2435bb2457c630db3.tar
rpmdrake-8c12cc1b360fad7c36f2f2a2435bb2457c630db3.tar.gz
rpmdrake-8c12cc1b360fad7c36f2f2a2435bb2457c630db3.tar.bz2
rpmdrake-8c12cc1b360fad7c36f2f2a2435bb2457c630db3.tar.xz
rpmdrake-8c12cc1b360fad7c36f2f2a2435bb2457c630db3.zip
in MandrakeUpdate mode, display a nice explanation message when
the list of updates is void, and also put "(none)" in the list instead of seeing nothing and wondering if something is broken or not
-rwxr-xr-xrpmdrake4
1 files changed, 4 insertions, 0 deletions
diff --git a/rpmdrake b/rpmdrake
index b7a142ed..ad86b926 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -188,6 +188,10 @@ sub run_treeview_dialog {
if ($MODE eq 'update') {
@keys = grep { my ($name) = split_fullname($_);
member($descriptions->{$name}{importance}, @$mandrakeupdate_wanted_categories) } @keys;
+ int(@keys) or $add_node->('', _("(none)")), interactive_msg(_("No update"),
+_("The list of updates is void. This means that either there is
+no available update for the packages installed on your computer,
+or you already installed all of them."));
}
@elems = map { [ $_, !$flat && ctreefy($pkgs->{$_}{pkg}->group) ] } @keys;
}