summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2019-09-04 12:27:39 +0000
committerMarc Espie <espie@cvs.openbsd.org>2019-09-04 12:27:39 +0000
commit3b7be44fbd14b7474c7c2ae42871c66de17ba46d (patch)
tree9cd6fdc10190e72e97247507f545eb0ff281bd27 /usr.sbin/pkg_add
parent30c9dffe91c2f6c86b6993dfee66b6c5f67d6fb6 (diff)
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;