summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pkg_add
diff options
context:
space:
mode:
authorespie <espie@openbsd.org>2019-09-04 12:27:38 +0000
committerespie <espie@openbsd.org>2019-09-04 12:27:38 +0000
commitaf4e06d4c138c8a84ff8eed0d4c8d6bd11ba1d70 (patch)
treefe24f83422201bc51d4c360592e5fa8964d462fb /usr.sbin/pkg_add
parentAdd comment. (diff)
downloadwireguard-openbsd-af4e06d4c138c8a84ff8eed0d4c8d6bd11ba1d70.tar.xz
wireguard-openbsd-af4e06d4c138c8a84ff8eed0d4c8d6bd11ba1d70.zip
let collisionreport work better with FETCH_PACKAGES
Diffstat (limited to 'usr.sbin/pkg_add')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/CollisionReport.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/CollisionReport.pm b/usr.sbin/pkg_add/OpenBSD/CollisionReport.pm
index 201969af860..b3f10f5cfdf 100644
--- a/usr.sbin/pkg_add/OpenBSD/CollisionReport.pm
+++ b/usr.sbin/pkg_add/OpenBSD/CollisionReport.pm
@@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
-# $OpenBSD: CollisionReport.pm,v 1.47 2018/02/27 22:46:53 espie Exp $
+# $OpenBSD: CollisionReport.pm,v 1.48 2019/09/04 12:27:38 espie Exp $
#
# Copyright (c) 2003-2006 Marc Espie <espie@openbsd.org>
#
@@ -57,6 +57,9 @@ sub find_collisions
}
for my $pkg (installed_packages()) {
$state->say("Looking for collisions in #1", $pkg) if $verbose;
+ # XXX in -n mode, some stuff is not really there
+ # avoid warnings
+ next unless -d installed_info($pkg);
my $plist = OpenBSD::PackingList->from_installation($pkg,
\&OpenBSD::PackingList::FilesOnly);
next if !defined $plist;