Code

fixed bug in removeFile()
authorishmal <ishmal@users.sourceforge.net>
Tue, 26 Aug 2008 03:29:49 +0000 (03:29 +0000)
committerishmal <ishmal@users.sourceforge.net>
Tue, 26 Aug 2008 03:29:49 +0000 (03:29 +0000)
buildtool.cpp

index 1de8d68bce7c7f18aef8e0f2654e9e913b3070b6..a7d0876909b658e185fb7f07e483fa97aba3532e 100644 (file)
@@ -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;
                 }
             }