aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-10-19 10:36:09 +0000
committerThierry Vignaud <tv@mandriva.org>2009-10-19 10:36:09 +0000
commit0c2107a77a46941c9341790db88e6ee436442dfc (patch)
treebf9887003713ce5bd435ebc07570bdaf498cbd27 /Rpmdrake
parent383644a9f8cf5d6c8747c9fef32a6f7465d515d3 (diff)
downloadrpmdrake-0c2107a77a46941c9341790db88e6ee436442dfc.tar
rpmdrake-0c2107a77a46941c9341790db88e6ee436442dfc.tar.gz
rpmdrake-0c2107a77a46941c9341790db88e6ee436442dfc.tar.bz2
rpmdrake-0c2107a77a46941c9341790db88e6ee436442dfc.tar.xz
rpmdrake-0c2107a77a46941c9341790db88e6ee436442dfc.zip
(format_pkg_simplifiedinfo) rename 'dependancies' as 'new
dependancies' and tell there's no new dependancy when dependancies list is empty (#54697)
Diffstat (limited to 'Rpmdrake')
-rw-r--r--Rpmdrake/gui.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/Rpmdrake/gui.pm b/Rpmdrake/gui.pm
index 49c54c9e..eea5ccf0 100644
--- a/Rpmdrake/gui.pm
+++ b/Rpmdrake/gui.pm
@@ -211,7 +211,7 @@ sub format_pkg_simplifiedinfo {
my $deps_textview;
push @$s, [ gtkadd(
gtksignal_connect(
- gtkshow(my $dependencies = Gtk2::Expander->new(format_field(N("Dependencies:")))),
+ gtkshow(my $dependencies = Gtk2::Expander->new(format_field(N("New dependencies:")))),
activate => sub {
slow_func($::main_window->window, sub {
my $state = {};
@@ -222,6 +222,7 @@ sub format_pkg_simplifiedinfo {
$urpm->disable_selected(open_rpm_db(), $state, @requested);
my @nodes_with_deps = map { urpm_name($_) } @requested;
my @deps = sort { $a cmp $b } difference2(\@nodes_with_deps, [ urpm_name($upkg) ]);
+ @deps = N("No non installed dependancy.") if !@deps;
gtktext_insert($deps_textview, join("\n", @deps));
});
}