diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2005-10-22 15:01:55 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2005-10-22 15:01:55 +0000 |
commit | 1b3faf4c05485d4e5c2caf95c1bb8523e1f001b2 (patch) | |
tree | f2e47b7ee04b687bbb1ad3bcb16327ea067e95f8 /usr.sbin/pkg_add | |
parent | 5da8a7b03acb372657eaf80909c06f0a68f7b469 (diff) |
always display the list of packages we can't update.
Diffstat (limited to 'usr.sbin/pkg_add')
-rw-r--r-- | usr.sbin/pkg_add/pkg_add | 5 |
1 files 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); } } |