From 6a2b9d95bbc85acda377e3fab1d29d15d0f49695 Mon Sep 17 00:00:00 2001 From: ishmal Date: Tue, 26 Aug 2008 03:29:49 +0000 Subject: [PATCH] fixed bug in removeFile() --- buildtool.cpp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/buildtool.cpp b/buildtool.cpp index 1de8d68bc..a7d087690 100644 --- a/buildtool.cpp +++ b/buildtool.cpp @@ -39,7 +39,7 @@ * */ -#define BUILDTOOL_VERSION "BuildTool v0.9.5" +#define BUILDTOOL_VERSION "BuildTool v0.9.6" #include #include @@ -5174,6 +5174,8 @@ bool MakeBase::removeFile(const String &file) #endif removeFromStatCache(native); + + return true; } @@ -7608,7 +7610,11 @@ public: char *fname = (char *)fullName.c_str(); if (!quiet && verbose) taskstatus("path: %s", fname); - if (!removeFile(fullName)) return false; + if (!removeFile(fullName)) + { + //error("Could not delete file '%s'", fullName.c_str()); + return false; + } return true; } case DEL_DIR: @@ -7618,7 +7624,10 @@ public: if (!quiet && verbose) taskstatus("path: %s", fullDir.c_str()); if (!removeDirectory(fullDir)) + { + //error("Could not delete directory '%s'", fullDir.c_str()); return false; + } return true; } } -- 2.30.2