Fix uploader

This commit is contained in:
vshcherb 2012-05-20 22:58:21 +03:00
parent 6a3e1da72b
commit a4ed0d2509

View file

@ -307,7 +307,8 @@ public class IndexUploader {
uploadIndex(zFile, description, uploadCredentials);
} finally {
if (!f.getName().equals(unzipped.getName())) {
if (!f.getName().equals(unzipped.getName()) ||
(targetDirectory != null && !targetDirectory.equals(directory))) {
unzipped.delete(); // delete the unzipped file
}
if (logFile.exists()) {