diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2009-12-14 11:19:05 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2009-12-14 11:19:05 +0000 |
commit | 05813d26aa0af17535ea41acf9b69bfc2f3feefa (patch) | |
tree | 0bc9b6b65ee9bb73038bf88ea77add4199f1cca9 /usr.sbin | |
parent | 5afc381ea42d40b2ae891aad73be73411c272b93 (diff) |
combined updates show the packages that can't be updated
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/Update.pm | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Update.pm b/usr.sbin/pkg_add/OpenBSD/Update.pm index 0d9bdca6be6..b1afb9cfa52 100644 --- a/usr.sbin/pkg_add/OpenBSD/Update.pm +++ b/usr.sbin/pkg_add/OpenBSD/Update.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: Update.pm,v 1.116 2009/12/14 09:35:56 espie Exp $ +# $OpenBSD: Update.pm,v 1.117 2009/12/14 11:19:04 espie Exp $ # # Copyright (c) 2004-2006 Marc Espie <espie@openbsd.org> # @@ -269,17 +269,19 @@ sub process_hint2 sub process_set { my ($self, $set, $state) = @_; - my $problem; + my @problems = (); for my $h ($set->older, $set->hints) { next if $h->{update_found}; if (!defined $h->update($self, $set, $state)) { - $problem = 1; + push(@problems, $h->pkgname); } } - if ($problem) { + if (@problems > 0) { $state->tracker->cant($set) if !$set->{quirks}; if ($set->{updates} != 0) { - $state->say("Can't update ", $set->print); + $state->say("Can't update ", $set->print, + ": no update found for ", + join(',', @problems)); } return 0; } elsif ($set->{updates} == 0) { |