From: ishmal Date: Tue, 26 Aug 2008 14:02:46 +0000 (+0000) Subject: enable failOnError in TaskDelete X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=16e09690ecc6c5097c7db13292df529358d564db;p=inkscape.git enable failOnError in TaskDelete --- diff --git a/buildtool.cpp b/buildtool.cpp index a7d087690..23d265f02 100644 --- a/buildtool.cpp +++ b/buildtool.cpp @@ -7600,7 +7600,6 @@ public: bool verbose = parent.evalBool(verboseOpt, false); bool quiet = parent.evalBool(quietOpt, false); bool failOnError = parent.evalBool(failOnErrorOpt, true); - struct stat finfo; switch (delType) { case DEL_FILE: @@ -7610,7 +7609,7 @@ public: char *fname = (char *)fullName.c_str(); if (!quiet && verbose) taskstatus("path: %s", fname); - if (!removeFile(fullName)) + if (failOnError && !removeFile(fullName)) { //error("Could not delete file '%s'", fullName.c_str()); return false; @@ -7623,7 +7622,7 @@ public: String fullDir = parent.resolve(dirName); if (!quiet && verbose) taskstatus("path: %s", fullDir.c_str()); - if (!removeDirectory(fullDir)) + if (failOnError && !removeDirectory(fullDir)) { //error("Could not delete directory '%s'", fullDir.c_str()); return false;