From 1b3faf4c05485d4e5c2caf95c1bb8523e1f001b2 Mon Sep 17 00:00:00 2001
From: Marc Espie <espie@cvs.openbsd.org>
Date: Sat, 22 Oct 2005 15:01:55 +0000
Subject: always display the list of packages we can't update.

---
 usr.sbin/pkg_add/pkg_add | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/usr.sbin/pkg_add/pkg_add b/usr.sbin/pkg_add/pkg_add
index b2b186e24b0..74767dcc1b7 100644
--- a/usr.sbin/pkg_add/pkg_add
+++ b/usr.sbin/pkg_add/pkg_add
@@ -1,7 +1,7 @@
 #! /usr/bin/perl
 
 # ex:ts=8 sw=4:
-# $OpenBSD: pkg_add,v 1.206 2005/10/10 11:06:04 espie Exp $
+# $OpenBSD: pkg_add,v 1.207 2005/10/22 15:01:54 espie Exp $
 #
 # Copyright (c) 2003-2004 Marc Espie <espie@openbsd.org>
 #
@@ -865,8 +865,9 @@ if ($opt_u) {
 	}
 	my @cantupdate = find_updates(\@ARGV, \@todo, $state);
 	if (@cantupdate > 0) {
+			print "Cannot find updates for ", join(' ', @cantupdate), "\n";
 		unless ($state->{forced}->{alwaysupdate} ||
-			OpenBSD::Interactive::confirm("Cannot find updates for ".join(' ', @cantupdate).". Proceed", $state->{interactive}, 0)) {
+			OpenBSD::Interactive::confirm("Proceed", $state->{interactive}, 0)) {
 				exit(1);
 	    	}
 	}
-- 
cgit v1.2.3