summaryrefslogtreecommitdiffstats
path: root/mdkapplet
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-02-01 18:22:56 +0000
committerThierry Vignaud <tv@mandriva.org>2008-02-01 18:22:56 +0000
commit5451ece968ab5d41b8cb1742103fb9e1d0400301 (patch)
tree53c682440297dc793a37bdf65403818249e855db /mdkapplet
parentfc86b3bef41a7033859fff8e7e00459b24c05404 (diff)
downloadmgaonline-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)
Diffstat (limited to 'mdkapplet')
-rwxr-xr-xmdkapplet8
1 files changed, 5 insertions, 3 deletions
diff --git a/mdkapplet b/mdkapplet
index 9ba52465..6e151b92 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -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');