Set a default PKG_PATH.
This commit is contained in:
parent
e692e3aa52
commit
3ec12cb0ce
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=7997
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user