aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2006-08-23 09:20:45 +0000
committerThierry Vignaud <tv@mandriva.org>2006-08-23 09:20:45 +0000
commit9d267941261e314393a3fb33b3781f5b338fd687 (patch)
tree929c238f28f7fe1a56c0e7914ea6017d82826078
parent477b11dd05544924e3825ecadb5d8ecbd04636d7 (diff)
downloadrpmdrake-9d267941261e314393a3fb33b3781f5b338fd687.tar
rpmdrake-9d267941261e314393a3fb33b3781f5b338fd687.tar.gz
rpmdrake-9d267941261e314393a3fb33b3781f5b338fd687.tar.bz2
rpmdrake-9d267941261e314393a3fb33b3781f5b338fd687.tar.xz
rpmdrake-9d267941261e314393a3fb33b3781f5b338fd687.zip
(is_a_package) introduce it it order to know whether a leaf is a package or a group
-rwxr-xr-xrpmdrake4
1 files changed, 4 insertions, 0 deletions
diff --git a/rpmdrake b/rpmdrake
index 1e1d75b6..504d85b6 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -702,6 +702,10 @@ sub run_treeview_dialog {
@to_remove;
};
$options = {
+ is_a_package => sub {
+ my ($pkg) = @_;
+ return exists $pkgs->{$pkg};
+ },
get_icon => sub {
my ($group, $parent) = @_;
my $pixbuf;