From 6156911e0f116578b1c541dadf0fdd2e618fd7fe Mon Sep 17 00:00:00 2001 From: ewt Date: Mon, 15 Apr 1996 22:22:50 +0000 Subject: [PATCH] added INSTALL_NOSCRIPTS CVS patchset: 545 CVS date: 1996/04/15 22:22:50 --- lib/install.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/install.c b/lib/install.c index 7d42494..2fc9f00 100644 --- a/lib/install.c +++ b/lib/install.c @@ -263,7 +263,7 @@ int rpmInstallPackage(char * prefix, rpmdb db, int fd, int flags, } message(MESS_DEBUG, "running preinstall script (if any)\n"); - if (runScript(prefix, h, RPMTAG_PREIN)) { + if (runScript(prefix, h, RPMTAG_PREIN, flags & INSTALL_NOSCRIPTS)) { free(fileList); if (replacedList) free(replacedList); return 2; @@ -419,7 +419,7 @@ int rpmInstallPackage(char * prefix, rpmdb db, int fd, int flags, message(MESS_DEBUG, "running postinstall script (if any)\n"); - if (runScript(prefix, h, RPMTAG_POSTIN)) { + if (runScript(prefix, h, RPMTAG_POSTIN, flags & INSTALL_NOSCRIPTS)) { return 2; } -- 2.7.4