summaryrefslogtreecommitdiff
path: root/build/build.c
diff options
context:
space:
mode:
authormarc <devnull@localhost>1998-04-08 14:22:41 +0000
committermarc <devnull@localhost>1998-04-08 14:22:41 +0000
commitc4b0bbd922c44d0a33d5d48ce9a11d61e95fbd74 (patch)
tree723459169d510711f3d39e886cbdf59510846ecf /build/build.c
parent67943e0370d3d949f3c696e561ea1fbdf0aa4bbb (diff)
downloadrpm-c4b0bbd922c44d0a33d5d48ce9a11d61e95fbd74.tar.gz
rpm-c4b0bbd922c44d0a33d5d48ce9a11d61e95fbd74.tar.bz2
rpm-c4b0bbd922c44d0a33d5d48ce9a11d61e95fbd74.zip
make --clean work with no %setup
CVS patchset: 2074 CVS date: 1998/04/08 14:22:41
Diffstat (limited to 'build/build.c')
-rw-r--r--build/build.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/build/build.c b/build/build.c
index 9a8c7055f..3285401cf 100644
--- a/build/build.c
+++ b/build/build.c
@@ -155,7 +155,9 @@ int doScript(Spec spec, int what, char *name, StringBuf sb, int test)
}
}
if (what == RPMBUILD_RMBUILD) {
- fprintf(f, "rm -rf %s\n", spec->buildSubdir);
+ if (spec->buildSubdir) {
+ fprintf(f, "rm -rf %s\n", spec->buildSubdir);
+ }
} else {
fprintf(f, "%s", getStringBuf(sb));
}