diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-02-01 18:22:56 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-02-01 18:22:56 +0000 |
commit | 5451ece968ab5d41b8cb1742103fb9e1d0400301 (patch) | |
tree | 53c682440297dc793a37bdf65403818249e855db | |
parent | fc86b3bef41a7033859fff8e7e00459b24c05404 (diff) | |
download | mgaonline-5451ece968ab5d41b8cb1742103fb9e1d0400301.tar mgaonline-5451ece968ab5d41b8cb1742103fb9e1d0400301.tar.gz mgaonline-5451ece968ab5d41b8cb1742103fb9e1d0400301.tar.bz2 mgaonline-5451ece968ab5d41b8cb1742103fb9e1d0400301.tar.xz mgaonline-5451ece968ab5d41b8cb1742103fb9e1d0400301.zip |
(silentCheck) make sure to not report false positives (#36358)
-rwxr-xr-x | mdkapplet | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -368,9 +368,11 @@ sub silentCheck() { } if (my $db = urpm::db_open_or_die($urpm)) { - my $h = $urpm->request_packages_to_upgrade($db, {}, {}); - - if (my @_pkgs = grep { !$_->flag_skip } map { $urpm->{depslist}[$_] } keys %$h) { # FIXME: log first found pkgs? + my $requested = {}; + my $state = {}; + my $h = $urpm->request_packages_to_upgrade($db, $state, $requested); + my @requested_strict = $urpm->resolve_requested($db, $state, $requested, callback_choices => sub { 0 }); + if (@requested_strict) { # FIXME: log first found pkgs? $exit->('updates'); } else { $exit->('uptodate'); |