diff options
| author | Bob Jamison <ishmalius@gmail.com> | 2008-08-26 03:29:49 +0000 |
|---|---|---|
| committer | ishmal <ishmal@users.sourceforge.net> | 2008-08-26 03:29:49 +0000 |
| commit | 95fc5bf2094b9b139b5d81b7209f1c9a2164b0c8 (patch) | |
| tree | ebc6d72d6922da0f3965c995f06ed2367514c32b /buildtool.cpp | |
| parent | Cleanup of named icon background rendering and added pref for workaround (diff) | |
| download | inkscape-95fc5bf2094b9b139b5d81b7209f1c9a2164b0c8.tar.gz inkscape-95fc5bf2094b9b139b5d81b7209f1c9a2164b0c8.zip | |
fixed bug in removeFile()
(bzr r6716)
Diffstat (limited to 'buildtool.cpp')
| -rw-r--r-- | buildtool.cpp | 13 |
1 files 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 <stdio.h> #include <fcntl.h> @@ -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; } } |
