aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS2
-rw-r--r--Rpmdrake/gui.pm3
2 files changed, 4 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 2fce8f4b..fa1f5d1c 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,5 @@
+- rename 'dependancies' as 'new dependancies' and tell there's no new
+ dependancy when list is empty (#54697)
- use a scrolling window if needed when displaying list of orphan
packages after removing some packages (#54713)
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));
});
}