summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2005-10-24 08:56:00 +0000
committerMarc Espie <espie@cvs.openbsd.org>2005-10-24 08:56:00 +0000
commitb8df9af404f92a9956187c3c802d8648b984ceb9 (patch)
tree97bed1d43f705c3e3eb2932dd310288777607535 /usr.sbin/pkg_add
parentd5f698012bd1227f40937df290ae8fe44d03de3c (diff)
filter out .libs-* later, so that compute_closures() packages do not
get involved.
Diffstat (limited to 'usr.sbin/pkg_add')
-rw-r--r--usr.sbin/pkg_add/pkg_add5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/pkg_add b/usr.sbin/pkg_add/pkg_add
index 224def98c7f..33d8920ce92 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.209 2005/10/24 07:16:35 espie Exp $
+# $OpenBSD: pkg_add,v 1.210 2005/10/24 08:55:59 espie Exp $
#
# Copyright (c) 2003-2004 Marc Espie <espie@openbsd.org>
#
@@ -650,6 +650,7 @@ sub find_updates
my $hash = available_stems($state);
for my $pkgname (@list) {
+ next if $pkgname =~ m/^\.libs-/;
my $stem = OpenBSD::PackageName::splitstem($pkgname);
my @l = $hash->findstem($stem);
if (@l == 0) {
@@ -860,7 +861,7 @@ my @todo = ();
if ($opt_u) {
if (@ARGV == 0) {
- @ARGV = sort(installed_packages(1));
+ @ARGV = sort(installed_packages());
$state->{full_update} = 1;
}
my @cantupdate = find_updates(\@ARGV, \@todo, $state);