From d1ff200f04ab0b1f535aa394f40ec7da2d5c81c0 Mon Sep 17 00:00:00 2001 From: Alexey Tourbin Date: Mon, 17 Mar 2008 20:58:55 +0300 Subject: [PATCH] Revert "build/parseScript.c: opitimize out RPMSENSE_INTERP dependencies on /bin/sh" /bin/sh dependency is still there, because scriptlets are written with "!#/bin/sh" first line, and bulk dependency optimization was removed. However, having RPMSENSE_INTERP flag is still good idea -- maybe rpm can check that RPMSENSE_INTERP file is actually X_OK or something. This reverts commit 5224b77cbdd2200ab040124101a132e92531f134. --- build/parseScript.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/parseScript.c b/build/parseScript.c index 0a510b6..e13fec3 100644 --- a/build/parseScript.c +++ b/build/parseScript.c @@ -260,7 +260,7 @@ int parseScript(Spec spec, int parsePart) stripTrailingBlanksStringBuf(sb); p = getStringBuf(sb); - if (pkg->autoReq && *pkg->autoReq && strcmp(progArgv[0], "/bin/sh")) + if (pkg->autoReq && *pkg->autoReq) (void) addReqProv(spec, pkg->header, (tagflags | RPMSENSE_INTERP), progArgv[0], NULL, 0); /* Trigger script insertion is always delayed in order to */