[osm2garmin] r267 committed - Update Issue 123...

2 views
Skip to first unread message

osm2g...@googlecode.com

unread,
Oct 5, 2013, 10:50:16 AM10/5/13
to mant...@gmail.com
Revision: 267
Author: mant...@gmail.com
Date: Sat Oct 5 14:50:00 2013 UTC
Log: Update Issue 123
Fixed problem with incorrect state.txt download URL.
http://code.google.com/p/osm2garmin/source/detail?r=267

Modified:
/trunk/Osm2garminAPI/src/main/java/org/mantlik/osm2garmin/Utilities.java

=======================================
---
/trunk/Osm2garminAPI/src/main/java/org/mantlik/osm2garmin/Utilities.java
Tue Mar 26 13:26:16 2013 UTC
+++
/trunk/Osm2garminAPI/src/main/java/org/mantlik/osm2garmin/Utilities.java
Sat Oct 5 14:50:00 2013 UTC
@@ -559,7 +559,7 @@
long startReplTime = new SimpleDateFormat("yyyy-MM-dd").parse(
"2012-09-12", new ParsePosition(0)).getTime();
int sequenceNo = (int) ((planetTime - startReplTime) / 1000 / 60 /
60); // hours
- String stateUrl = mirror + updateName(sequenceNo);
+ String stateUrl = mirror +
updateName(sequenceNo).replace("osc.gz", "state.txt");
while (!downloadFile(stateUrl, targetPath)) {
// try older file
sequenceNo--;
@@ -567,7 +567,7 @@
if (max_retries <= 0) {
return false;
}
- stateUrl = mirror + updateName(sequenceNo);
+ stateUrl = mirror +
updateName(sequenceNo).replace("osc.gz", "state.txt");
}
return true;
}
Reply all
Reply to author
Forward
0 new messages