From d09dddb1a68d5be9d0ff4b63c3cc1dbfc7c6e8c8 Mon Sep 17 00:00:00 2001 From: jbj Date: Fri, 22 Jan 1999 00:38:10 +0000 Subject: [PATCH] don't erase failing build script (Tim Mooney). CVS patchset: 2738 CVS date: 1999/01/22 00:38:10 --- CHANGES | 1 + build/build.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGES b/CHANGES index 5f3642e5c..3cc25ca57 100644 --- a/CHANGES +++ b/CHANGES @@ -46,6 +46,7 @@ - there must be a { between two % in a query format (unless %% is used) 2.5.6 -> 2.5.7: + - don't erase failing build script (Tim Mooney). - use portable mkinstalldirs (Tim Mooney). - irix6 autodeps were dup'd (Shing-Gene Yung ). - getservbyname needed ntohs(). diff --git a/build/build.c b/build/build.c index f628e0b4b..bb537f829 100644 --- a/build/build.c +++ b/build/build.c @@ -128,7 +128,9 @@ int doScript(Spec spec, int what, const char *name, StringBuf sb, int test) execl(buildShell, buildShell, "-e", scriptName, scriptName, NULL); rpmError(RPMERR_SCRIPT, _("Exec of %s failed (%s)"), scriptName, name); +#if 0 /* XXX don't erase the failing script */ unlink(scriptName); +#endif FREE(scriptName); return RPMERR_SCRIPT; }