summaryrefslogtreecommitdiff
path: root/build/parsePrep.c
diff options
context:
space:
mode:
authormarc <devnull@localhost>1998-02-02 15:34:36 +0000
committermarc <devnull@localhost>1998-02-02 15:34:36 +0000
commit9fc5557ba49b82434bc5b23e5dee6e69ebd07609 (patch)
treeb95a75dd3b96b51d7698ee47e012e2ab580000dd /build/parsePrep.c
parent6681ac1ceeafe5f745b409fc124b900cbf30e8d9 (diff)
downloadrpm-9fc5557ba49b82434bc5b23e5dee6e69ebd07609.tar.gz
Fix return code handling
CVS patchset: 1981 CVS date: 1998/02/02 15:34:36
Diffstat (limited to 'build/parsePrep.c')
-rw-r--r--build/parsePrep.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/build/parsePrep.c b/build/parsePrep.c
index 556a2f2b5..df22013e1 100644
--- a/build/parsePrep.c
+++ b/build/parsePrep.c
@@ -259,8 +259,9 @@ static char *doUntar(Spec spec, int c, int quietly)
if (compressed) {
sprintf(buf,
"%s -dc %s | tar %s -\n"
- "if [ $? -ne 0 ]; then\n"
- " exit $?\n"
+ "STATUS=$?\n"
+ "if [ $STATUS -ne 0 ]; then\n"
+ " exit $STATUS\n"
"fi",
rpmGetVar(RPMVAR_GZIPBIN), file, taropts);
} else {