summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorespie <espie@openbsd.org>2009-12-14 11:19:04 +0000
committerespie <espie@openbsd.org>2009-12-14 11:19:04 +0000
commit98b10e600bcaa15f9a1c257349f58999a61667d2 (patch)
tree7b73178cd1ee99626ad22f633d75c59e4371e67c
parentAdd /etc/rtadvd.conf (diff)
downloadwireguard-openbsd-98b10e600bcaa15f9a1c257349f58999a61667d2.tar.xz
wireguard-openbsd-98b10e600bcaa15f9a1c257349f58999a61667d2.zip
combined updates show the packages that can't be updated
-rw-r--r--usr.sbin/pkg_add/OpenBSD/Update.pm12
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) {