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 5224b77cbd.
This commit is contained in:
Alexey Tourbin 2008-03-17 20:58:55 +03:00
parent f4371cc2a2
commit d1ff200f04

View File

@ -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 */