Go for global integrationtest path first, if possible.
This commit is contained in:
parent
3afcb3415d
commit
f6a5e0e36a
|
|
@ -79,8 +79,8 @@ public class MD5DB {
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public static String getMD5FilePath(final String md5, final String valueIfNotFound) {
|
public static String getMD5FilePath(final String md5, final String valueIfNotFound) {
|
||||||
// we prefer the local db to the global DB, so match it first
|
// we prefer the global db to the local DB, so match it first
|
||||||
for ( String dir : Arrays.asList(LOCAL_MD5_DB_DIR, GLOBAL_MD5_DB_DIR)) {
|
for ( String dir : Arrays.asList(GLOBAL_MD5_DB_DIR, LOCAL_MD5_DB_DIR)) {
|
||||||
File f = getFileForMD5(md5, dir);
|
File f = getFileForMD5(md5, dir);
|
||||||
if ( f.exists() && f.canRead() )
|
if ( f.exists() && f.canRead() )
|
||||||
return f.getPath();
|
return f.getPath();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue