diff options
author | hubertf <hubertf@pkgsrc.org> | 1999-03-30 12:52:36 +0000 |
---|---|---|
committer | hubertf <hubertf@pkgsrc.org> | 1999-03-30 12:52:36 +0000 |
commit | 7e6fa7c7763ca8e77f3238f51fefc77954305278 (patch) | |
tree | 3fa973b4b905ec9acfddb84d02e6c01d630d1f64 /pkgtools/pkg_install | |
parent | 2275cda883d55e1fb11ef5dd3e419627fa6c0174 (diff) | |
download | pkgsrc-7e6fa7c7763ca8e77f3238f51fefc77954305278.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" |