diff options
Diffstat (limited to 'build/build.c')
-rw-r--r-- | build/build.c | 4 |
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)); } |