git-svn-id: https://osmand.googlecode.com/svn/trunk@738 e29c36b1-1cfa-d876-8d93-3434fc2bb7b8
This commit is contained in:
Victor Shcherb 2010-12-01 11:12:36 +00:00
parent a1a66cb627
commit 24db7d1f9d

View file

@ -435,7 +435,11 @@ public class IndexBatchCreator {
return; return;
} }
if(mbLengh > 3 && (f.getName().endsWith(".odb") || f.getName().endsWith(".obf")) && zip){ if(mbLengh > 3 && (f.getName().endsWith(".odb") || f.getName().endsWith(".obf")) && zip){
String zipFileName = f.getName().subSequence(0, f.getName().length() - 4)+".zip"; String n = f.getName();
if(f.getName().endsWith(".odb")){
n = f.getName().substring(0, f.getName().length() - 4);
}
String zipFileName = n+".zip";
File zFile = new File(f.getParentFile(), zipFileName); File zFile = new File(f.getParentFile(), zipFileName);
log.info("Zipping file " + f.getName()); log.info("Zipping file " + f.getName());
try { try {