diff options
author | Thierry Vignaud <tv@mandriva.org> | 2009-10-19 10:36:02 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2009-10-19 10:36:02 +0000 |
commit | 3b7cd16c256cf8f7cabb5e861280978396861561 (patch) | |
tree | 4401e25c057e0c9f118d25b27621f254010ca7a4 /Rpmdrake/gui.pm | |
parent | 8e91c0d3a566fd952ba06e36dc355f8f960a09ac (diff) | |
download | rpmdrake-3b7cd16c256cf8f7cabb5e861280978396861561.tar rpmdrake-3b7cd16c256cf8f7cabb5e861280978396861561.tar.gz rpmdrake-3b7cd16c256cf8f7cabb5e861280978396861561.tar.bz2 rpmdrake-3b7cd16c256cf8f7cabb5e861280978396861561.tar.xz rpmdrake-3b7cd16c256cf8f7cabb5e861280978396861561.zip |
(format_pkg_simplifiedinfo) use a local urpm state
Diffstat (limited to 'Rpmdrake/gui.pm')
-rw-r--r-- | Rpmdrake/gui.pm | 5 |
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)); |