summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-03-10 12:48:38 +0000
committerThierry Vignaud <tv@mandriva.org>2008-03-10 12:48:38 +0000
commitf1dfc6cf5a142988a94425c4fa8580203e4ac0f7 (patch)
tree687fedd6db3a2369c5bd9306df0a8e22d85acfd3
parentc459dd98b91f6b44187ce4a06926a9756bae5188 (diff)
downloadmgaonline-f1dfc6cf5a142988a94425c4fa8580203e4ac0f7.tar
mgaonline-f1dfc6cf5a142988a94425c4fa8580203e4ac0f7.tar.gz
mgaonline-f1dfc6cf5a142988a94425c4fa8580203e4ac0f7.tar.bz2
mgaonline-f1dfc6cf5a142988a94425c4fa8580203e4ac0f7.tar.xz
mgaonline-f1dfc6cf5a142988a94425c4fa8580203e4ac0f7.zip
(silentCheck) adapt to urpmi-5.9 (#38724)
-rw-r--r--NEWS3
-rwxr-xr-xmdkapplet5
2 files changed, 4 insertions, 4 deletions
diff --git a/NEWS b/NEWS
index 8861e154..65ff360e 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,6 @@
+- mdkapplet:
+ o adapt to urpmi-5.9 (#38724)
+
Version 2.32 - 5 March 2008, Thierry Vignaud
- mdkapplet:
diff --git a/mdkapplet b/mdkapplet
index fe46df81..775a24a8 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -366,16 +366,13 @@ sub silentCheck() {
if (my $db = urpm::db_open_or_die($urpm)) {
my $requested = {};
my $state = {};
- my @requested_strict;
my $need_restart = urpm::select::resolve_dependencies(
$urpm, $state, $requested,
callback_choices => sub { 0 },
priority_upgrade => $urpm->{options}{'priority-upgrade'},
auto_select => 1,
- resolve_req_callback => sub {
- @requested_strict = sort map { scalar $_->fullname } @_;
- },
);
+ my @requested_strict = map { scalar $_->fullname } @{$urpm->{depslist}}[keys %{$state->{selected}}];
if ($need_restart || @requested_strict) { # FIXME: log first found pkgs?
$exit->('updates');