From 4d17b19c65526769e339f93939fb98ede968953f Mon Sep 17 00:00:00 2001 From: Marc Espie Date: Sun, 19 Oct 2003 18:41:57 +0000 Subject: pkgpath is . by default. --- usr.sbin/pkg_add/OpenBSD/PackageLocator.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'usr.sbin/pkg_add/OpenBSD/PackageLocator.pm') 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 -- cgit v1.2.3