File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
biojava-structure/src/main/java/org/biojava/nbio/structure/cath Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments