summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorhubertf <hubertf>1999-03-30 12:52:36 +0000
committerhubertf <hubertf>1999-03-30 12:52:36 +0000
commite50b3b609e4c89cdb7f4e6a21e301d8670e2a793 (patch)
tree3fa973b4b905ec9acfddb84d02e6c01d630d1f64 /pkgtools
parent65cc6f263f1a2599576bc6e45e50587f1df4f068 (diff)
downloadpkgsrc-e50b3b609e4c89cdb7f4e6a21e301d8670e2a793.tar.gz
No need to call "pkg_admin rebuild" for every install.
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/pkg_install/Makefile9
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"