summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2007-04-21 10:02:16 +0000
committerMarc Espie <espie@cvs.openbsd.org>2007-04-21 10:02:16 +0000
commit9132e503c7e9115a5d45b4341d8517b398b68537 (patch)
treec7e095fbc8aca26ac10fd83c59b0641bbf381426 /usr.sbin/pkg_add
parent9cc00c8a0fa1ee89e86e47e2976a92a0d872737e (diff)
avoid both .libs-* and partial-*. Be a bit forceful about them, as they're
going to cause problems if they're not cleaned from time to time.
Diffstat (limited to 'usr.sbin/pkg_add')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/Update.pm8
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Update.pm b/usr.sbin/pkg_add/OpenBSD/Update.pm
index a389452bb7c..d2fdc1a2c2d 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.65 2007/04/15 10:17:29 espie Exp $
+# $OpenBSD: Update.pm,v 1.66 2007/04/21 10:02:15 espie Exp $
#
# Copyright (c) 2004-2006 Marc Espie <espie@openbsd.org>
#
@@ -42,7 +42,11 @@ sub find
OpenBSD::ProgressMeter::set_header("Looking for updates");
for my $pkgname (@list) {
- next if $pkgname =~ m/^\.libs-/;
+ if ($pkgname =~ m/^(?:\.libs|partial)\-/) {
+ OpenBSD::ProgressMeter::clear();
+ print "Not updating $pkgname, remember to clean it\n";
+ next;
+ }
my $stem = OpenBSD::PackageName::splitstem($pkgname);
my @l = $hash->findstem($stem);
if (@l == 0) {