summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2009-11-24 11:36:07 +0000
committerMarc Espie <espie@cvs.openbsd.org>2009-11-24 11:36:07 +0000
commit3e04bef4e067d0cf5a3b0ff0559387d7c68839b5 (patch)
tree462e5d924851adb0e8e13eba9106359f01fbc6f1 /usr.sbin
parentd5b0de95e83d3530c96b2ca835bb34e5dd9fb824 (diff)
zap pkgpath totally, set up to display (to go) as well.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/Update.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Update.pm b/usr.sbin/pkg_add/OpenBSD/Update.pm
index 28df9c9d5aa..7d33c91584a 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.103 2009/11/24 10:22:26 espie Exp $
+# $OpenBSD: Update.pm,v 1.104 2009/11/24 11:36:06 espie Exp $
#
# Copyright (c) 2004-2006 Marc Espie <espie@openbsd.org>
#
@@ -100,9 +100,6 @@ sub process_handle
if (@$l == 0) {
return $l;
}
- if (@$l == 1 && $state->{defines}->{pkgpath}) {
- return $l;
- }
my @l2 = ();
$plist = OpenBSD::PackingList->from_installation($pkgname, \&OpenBSD::PackingList::UpdateInfoOnly);
if (!defined $plist) {
@@ -147,6 +144,9 @@ sub process_handle
!$plist->uses_old_libs && !$state->{defines}->{installed}) {
$h->{update_found} = $h;
my $msg = "No need to update $pkgname";
+ if ($state->{todo} > 0) {
+ $msg .= " ($state->{todo} to go)";
+ }
$state->progress->message($msg);
$state->say($msg) if $state->{beverbose};
return 0;