diff options
author | marc <devnull@localhost> | 1998-04-08 14:22:41 +0000 |
---|---|---|
committer | marc <devnull@localhost> | 1998-04-08 14:22:41 +0000 |
commit | c4b0bbd922c44d0a33d5d48ce9a11d61e95fbd74 (patch) | |
tree | 723459169d510711f3d39e886cbdf59510846ecf | |
parent | 67943e0370d3d949f3c696e561ea1fbdf0aa4bbb (diff) | |
download | librpm-tizen-c4b0bbd922c44d0a33d5d48ce9a11d61e95fbd74.tar.gz librpm-tizen-c4b0bbd922c44d0a33d5d48ce9a11d61e95fbd74.tar.bz2 librpm-tizen-c4b0bbd922c44d0a33d5d48ce9a11d61e95fbd74.zip |
make --clean work with no %setup
CVS patchset: 2074
CVS date: 1998/04/08 14:22:41
-rw-r--r-- | CHANGES | 3 | ||||
-rw-r--r-- | build/build.c | 4 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,6 @@ +2.4.107 -> 2.4.108: + - make --clean work with no %setup + 2.4.106 -> 2.4.107: - --nomd5 wasn't handled properly - updated configure.in find-req and find-prov checks (Tim Mooney) 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)); } |