summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2013-09-11 15:36:19 +0000
committerMarc Espie <espie@cvs.openbsd.org>2013-09-11 15:36:19 +0000
commitb626f64db9dd8998a42c79906196a3b9e89ca02a (patch)
tree53437e4c490874b9f84eb1a73df61e2b824061d9 /usr.sbin
parent6b4686ba26a741b2a5442fa78835739f85962854 (diff)
pkglocatedb should be installable even if nothing is there...
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/PkgCheck.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PkgCheck.pm b/usr.sbin/pkg_add/OpenBSD/PkgCheck.pm
index 6eee0f44f2b..1837dcdc4cb 100644
--- a/usr.sbin/pkg_add/OpenBSD/PkgCheck.pm
+++ b/usr.sbin/pkg_add/OpenBSD/PkgCheck.pm
@@ -1,7 +1,7 @@
#! /usr/bin/perl
# ex:ts=8 sw=4:
-# $OpenBSD: PkgCheck.pm,v 1.40 2013/05/26 16:02:20 espie Exp $
+# $OpenBSD: PkgCheck.pm,v 1.41 2013/09/11 15:36:18 espie Exp $
#
# Copyright (c) 2003-2010 Marc Espie <espie@openbsd.org>
#
@@ -710,6 +710,7 @@ sub install_pkglocate
my $spec = 'pkglocatedb->=0.4';
my @l = installed_stems()->find('pkglocatedb');
+ require OpenBSD::PkgSpec;
if (OpenBSD::PkgSpec->new($spec)->match_ref(\@l)) {
return 1;
}