diff options
author | hubertf <hubertf> | 1999-03-30 12:52:36 +0000 |
---|---|---|
committer | hubertf <hubertf> | 1999-03-30 12:52:36 +0000 |
commit | 8b090670d139f2d7fad32c43ca245c29fe7b7957 (patch) | |
tree | 3fa973b4b905ec9acfddb84d02e6c01d630d1f64 /pkgtools/pkg_install | |
parent | 616ef0a75c3079e94247f5bcba5f9c50ef4883b4 (diff) | |
download | pkgsrc-8b090670d139f2d7fad32c43ca245c29fe7b7957.tar.gz |
No need to call "pkg_admin rebuild" for every install.
Diffstat (limited to 'pkgtools/pkg_install')
-rw-r--r-- | pkgtools/pkg_install/Makefile | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/pkgtools/pkg_install/Makefile b/pkgtools/pkg_install/Makefile index 774b8041177..2041492ef7b 100644 --- a/pkgtools/pkg_install/Makefile +++ b/pkgtools/pkg_install/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.14 1999/03/25 16:18:47 garbled Exp $ +# $NetBSD: Makefile,v 1.15 1999/03/30 12:52:36 hubertf Exp $ # # Note to package maintainers: @@ -31,10 +31,11 @@ MANCOMPRESSED= yes .endif post-install: - [ -f $${PKG_DBDIR:-/var/db/pkg}/pkgdb.byfile.db ] || \ - if [ -d $${PKG_DBDIR:-/var/db/pkg} ]; then /bin/true; else \ + if [ ! -f $${PKG_DBDIR:-/var/db/pkg}/pkgdb.byfile.db ]; then + if [ ! -d $${PKG_DBDIR:-/var/db/pkg} ]; then \ ${MKDIR} $${PKG_DBDIR:-/var/db/pkg}; \ fi; \ - pkg_admin rebuild + pkg_admin rebuild ; \ + fi .include "../../mk/bsd.pkg.mk" |