diff options
author | jkh <jkh@FreeBSD.org> | 1995-04-22 10:58:23 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1995-04-22 10:58:23 +0000 |
commit | 9f35997ce19bdb55060cf582bd750b9e58794f42 (patch) | |
tree | 42faae4ea139e85e2b6af904471def435efe9e56 /usr.sbin | |
parent | de203839fac828d56d3d8d330e53a5365b37aa35 (diff) | |
download | FreeBSD-src-9f35997ce19bdb55060cf582bd750b9e58794f42.zip FreeBSD-src-9f35997ce19bdb55060cf582bd750b9e58794f42.tar.gz |
Set a default PKG_PATH.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/pkg_manage/pkg_manage.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.sbin/pkg_manage/pkg_manage.c b/usr.sbin/pkg_manage/pkg_manage.c index bac4fee..58cbed8 100644 --- a/usr.sbin/pkg_manage/pkg_manage.c +++ b/usr.sbin/pkg_manage/pkg_manage.c @@ -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); |