Set a default PKG_PATH.

This commit is contained in:
Jordan K. Hubbard 1995-04-22 10:58:23 +00:00
parent e692e3aa52
commit 3ec12cb0ce
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=7997

View File

@ -349,6 +349,8 @@ install_package(char *fname)
fprintf(stderr, "install_package(): Error malloc'ing tmp_file\n");
exit(-1);
}
if (!getenv("PKG_PATH"))
putenv("/usr/ports/packages:/usr/ports/packages/all:.");
exec_catch_errors(PKG_ADD, fname, tmp_file);
unlink(tmp_file);