don't erase failing build script (Tim Mooney).
authorjbj <devnull@localhost>
Fri, 22 Jan 1999 00:38:10 +0000 (00:38 +0000)
committerjbj <devnull@localhost>
Fri, 22 Jan 1999 00:38:10 +0000 (00:38 +0000)
CVS patchset: 2738
CVS date: 1999/01/22 00:38:10

CHANGES
build/build.c

diff --git a/CHANGES b/CHANGES
index 5f3642e..3cc25ca 100644 (file)
--- 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 <shing@cz3.nus.edu.sg>).
        - getservbyname needed ntohs().
index f628e0b..bb537f8 100644 (file)
@@ -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;
     }