summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabien Tassin <fta@ubuntu.com>2008-10-19 15:49:58 +0200
committerFabien Tassin <fta@ubuntu.com>2008-10-19 15:49:58 +0200
commit9c72529fdf2063d5fa632266e3c21d752e107dd0 (patch)
tree3b4d9e3c964832d98cb647bbd345bd36ede697d6
parent9e8f21795972b4fa55380a50eb7173ec2cec1e91 (diff)
* [mozclient] only remove REMOVED+${nobinonly}.txt if it does exist
- update src/mozclient/lib/MozClient/VCS.pm
-rw-r--r--src/mozclient/lib/MozClient/VCS.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mozclient/lib/MozClient/VCS.pm b/src/mozclient/lib/MozClient/VCS.pm
index f5d1017..1471474 100644
--- a/src/mozclient/lib/MozClient/VCS.pm
+++ b/src/mozclient/lib/MozClient/VCS.pm
@@ -299,7 +299,7 @@ sub nobin_cleanup {
# Remove the log if it's empty
$self->unlink("REMOVED+${nobinonly}.txt")
- unless -s "REMOVED+${nobinonly}.txt";
+ if -e "REMOVED+${nobinonly}.txt" && -z "REMOVED+${nobinonly}.txt";
$self->chdir("../..");
}