summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2009-11-22 09:38:11 +0000
committerMarc Espie <espie@cvs.openbsd.org>2009-11-22 09:38:11 +0000
commitf1aefc02caef0b5e725e799c7d29c9a797eb302a (patch)
treeb7a85859131393b3abbcb3c433a7cacf6bb02875 /usr.sbin
parentede454237040f8cb3bde0260178b9c77070cd3ec (diff)
less verbose display: only shows .libs* once, but still show all partial-*
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/Update.pm12
1 files changed, 10 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Update.pm b/usr.sbin/pkg_add/OpenBSD/Update.pm
index c294763bd0b..d45f4d3ed8b 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.100 2009/11/22 09:18:55 espie Exp $
+# $OpenBSD: Update.pm,v 1.101 2009/11/22 09:38:10 espie Exp $
#
# Copyright (c) 2004-2006 Marc Espie <espie@openbsd.org>
#
@@ -69,12 +69,20 @@ sub add_location
OpenBSD::Handle->from_location($location));
}
+my $first = 1;
sub process_handle
{
my ($self, $set, $h, $state) = @_;
my $pkgname = $h->pkgname;
- if ($pkgname =~ m/^(?:\.libs\d*|partial)\-/o) {
+ if ($pkgname =~ m/^\.libs\d*\-/o) {
+ if ($first) {
+ $state->say("Not updating .libs*, remember to clean them");
+ $first = 0;
+ }
+ return 0;
+ }
+ if ($pkgname =~ m/^partial\-/o) {
$state->say("Not updating $pkgname, remember to clean it");
return 0;
}