diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2007-06-16 09:29:38 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2007-06-16 09:29:38 +0000 |
commit | 5f0af5a6151621e365e01d103ec8c80f20fd74ac (patch) | |
tree | 882757f72b8485f33ec9cd9bdbd69fb019c381eb /usr.sbin/pkg_add/OpenBSD/PackageInfo.pm | |
parent | 5ba6b2ba2df8fc791ddaed159225dbbcdf674cf5 (diff) |
use OpenBSD::Paths contents
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD/PackageInfo.pm')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/PackageInfo.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PackageInfo.pm b/usr.sbin/pkg_add/OpenBSD/PackageInfo.pm index 371b6d7d0a5..7d0e1712177 100644 --- a/usr.sbin/pkg_add/OpenBSD/PackageInfo.pm +++ b/usr.sbin/pkg_add/OpenBSD/PackageInfo.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: PackageInfo.pm,v 1.34 2007/06/09 11:16:54 espie Exp $ +# $OpenBSD: PackageInfo.pm,v 1.35 2007/06/16 09:29:37 espie Exp $ # # Copyright (c) 2003-2007 Marc Espie <espie@openbsd.org> # @@ -25,6 +25,7 @@ our @EXPORT=qw(installed_packages installed_info installed_name info_names is_in REQUIRED_BY REQUIRING DISPLAY UNDISPLAY MTREE_DIRS); use OpenBSD::PackageName; +use OpenBSD::Paths; use constant { CONTENTS => '+CONTENTS', COMMENT => '+COMMENT', @@ -39,7 +40,7 @@ use constant { MTREE_DIRS => '+MTREE_DIRS' }; use Fcntl qw/:flock/; -my $pkg_db = $ENV{"PKG_DBDIR"} || '/var/db/pkg'; +my $pkg_db = $ENV{"PKG_DBDIR"} || OpenBSD::Paths->pkgdb; my ($list, $stemlist); |