summaryrefslogtreecommitdiff
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
parent67943e0370d3d949f3c696e561ea1fbdf0aa4bbb (diff)
downloadlibrpm-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--CHANGES3
-rw-r--r--build/build.c4
2 files changed, 6 insertions, 1 deletions
diff --git a/CHANGES b/CHANGES
index 0512956e4..5d2559890 100644
--- a/CHANGES
+++ b/CHANGES
@@ -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));
}