summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/OpenBSD/PackageLocator.pm
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2003-10-19 18:41:57 +0000
committerMarc Espie <espie@cvs.openbsd.org>2003-10-19 18:41:57 +0000
commit4d17b19c65526769e339f93939fb98ede968953f (patch)
tree108174b104ad3d74ebab8f00bcff6eade8cbada1 /usr.sbin/pkg_add/OpenBSD/PackageLocator.pm
parent14a96c2edad395d1834415283ea10b09dd361f9f (diff)
pkgpath is . by default.
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD/PackageLocator.pm')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/PackageLocator.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PackageLocator.pm b/usr.sbin/pkg_add/OpenBSD/PackageLocator.pm
index c195d3ca289..68ce601dfa1 100644
--- a/usr.sbin/pkg_add/OpenBSD/PackageLocator.pm
+++ b/usr.sbin/pkg_add/OpenBSD/PackageLocator.pm
@@ -1,4 +1,4 @@
-# $OpenBSD: PackageLocator.pm,v 1.1 2003/10/16 17:43:34 espie Exp $
+# $OpenBSD: PackageLocator.pm,v 1.2 2003/10/19 18:41:56 espie Exp $
#
# Copyright (c) 2003 Marc Espie.
#
@@ -192,6 +192,8 @@ if (defined $ENV{PKG_PATH}) {
$i =~ m|/$| or $i.='/';
unshift @pkgpath, OpenBSD::PackageLocation->new($i);
}
+} else {
+ @pkgpath=(OpenBSD::PackageLocation->new("./"));
}
sub find