From: <no...@us...> - 2012-01-26 21:36:28
|
Revision: 4143 http://obo.svn.sourceforge.net/obo/?rev=4143&view=rev Author: nomi Date: 2012-01-26 21:36:20 +0000 (Thu, 26 Jan 2012) Log Message: ----------- Fixed some logic about when to download a new copy of an obo file (if date can't be determined from contents, and local copy is >6 days old). Modified Paths: -------------- phenote/trunk/src/java/phenote/dataadapter/OntologyDataAdapter.java Modified: phenote/trunk/src/java/phenote/dataadapter/OntologyDataAdapter.java =================================================================== --- phenote/trunk/src/java/phenote/dataadapter/OntologyDataAdapter.java 2012-01-26 21:35:42 UTC (rev 4142) +++ phenote/trunk/src/java/phenote/dataadapter/OntologyDataAdapter.java 2012-01-26 21:36:20 UTC (rev 4143) @@ -335,7 +335,7 @@ useRepos = false; } else { - LOG.debug(localFile + " last modified " + lastModified + "; current date is " + currentDate + "; diff = " + (currentDate - lastModified) + " (more than six days)--updating " + localFile); // DEL + LOG.debug(localFile + " last modified " + lastModified + "; current date is " + currentDate + "; diff = " + (currentDate - lastModified) + " (more than six days)--planning to update " + localFile); // DEL useRepos = true; } } @@ -373,7 +373,7 @@ //if autoupdate, update without dialog //LOG.debug("repos date "+reposDate+" local date "+loc); - if (reposDate <= loc) { + if (reposDate <= loc && reposDate != 0) { LOG.debug("Local copy is as new as repository--not updating " + ontol); useRepos = false; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |