Skip to content

Commit af526f1

Browse files
committed
Fixing cath urls according to their final layout
1 parent e2cc068 commit af526f1

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

biojava-structure/src/main/java/org/biojava/nbio/structure/cath/CathInstallation.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@ public class CathInstallation implements CathDatabase{
5353
public static final String domallFileName = "cath-domain-boundaries-v%s.txt";
5454

5555
public static final String CATH_DOWNLOAD_URL = "http://download.cathdb.info/cath/releases/";
56-
public static final String CATH_DOWNLOAD_LATEST_RELEASE_DIR = "latest-release";
57-
public static final String CATH_DOWNLOAD_PREV_RELEASE_DIR = "previous-releases";
56+
public static final String CATH_DOWNLOAD_ALL_RELEASES_DIR = "all-releases";
5857
public static final String CATH_DOWNLOAD_CLASSIFICATION_DATA_DIR = "cath-classification-data";
5958

6059
public static final String NEWLINE = System.getProperty("line.separator");;
@@ -134,10 +133,7 @@ private String buildFileName(String fileNameTemplate) {
134133

135134
private String buildUrl(String remoteFileName) {
136135
String remoteFileNameWithVer = buildFileName(remoteFileName);
137-
String releasesDir = CATH_DOWNLOAD_LATEST_RELEASE_DIR;
138-
if (!cathVersion.equals(CathFactory.LATEST_VERSION)) {
139-
releasesDir = CATH_DOWNLOAD_PREV_RELEASE_DIR;
140-
}
136+
String releasesDir = CATH_DOWNLOAD_ALL_RELEASES_DIR;
141137
return cathDownloadUrl + releasesDir + "/v" + cathVersion + "/" + CATH_DOWNLOAD_CLASSIFICATION_DATA_DIR + "/" + remoteFileNameWithVer;
142138
}
143139

0 commit comments

Comments
 (0)