From: ishmal Date: Tue, 26 Aug 2008 03:29:49 +0000 (+0000) Subject: fixed bug in removeFile() X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=6a2b9d95bbc85acda377e3fab1d29d15d0f49695;p=inkscape.git fixed bug in removeFile() --- 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; } }