aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Rpmdrake/gui.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/Rpmdrake/gui.pm b/Rpmdrake/gui.pm
index b69354c9..49c54c9e 100644
--- a/Rpmdrake/gui.pm
+++ b/Rpmdrake/gui.pm
@@ -214,11 +214,12 @@ sub format_pkg_simplifiedinfo {
gtkshow(my $dependencies = Gtk2::Expander->new(format_field(N("Dependencies:")))),
activate => sub {
slow_func($::main_window->window, sub {
+ my $state = {};
my @requested = $urpm->resolve_requested(
- open_rpm_db(), $urpm->{state},
+ open_rpm_db(), $state,
{ $upkg->id => 1 },
);
- $urpm->disable_selected(open_rpm_db(), $urpm->{state}, @requested);
+ $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) ]);
gtktext_insert($deps_textview, join("\n", @deps));