Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ public class ScopInstallation implements LocalScopDatabase {
public static final String comFileName = "dir.com.scop.txt_";

// Download locations
public static final String SCOP_DOWNLOAD = "http://scop.berkeley.edu/downloads/parse/";
public static final String SCOP_DOWNLOAD_ALTERNATE = "http://scop.berkeley.edu/downloads/parse/";
public static final String SCOP_DOWNLOAD = "https://scop.berkeley.edu/downloads/parse/";
public static final String SCOP_DOWNLOAD_ALTERNATE = "https://scop.berkeley.edu/downloads/parse/";

//public static final String NEWLINE = System.getProperty("line.separator");
public static final String FILESPLIT = System.getProperty("file.separator");
Expand Down Expand Up @@ -913,10 +913,19 @@ private void initScopURLs() {
// first, try default scop
ScopMirror primary = new ScopMirror();
// If unreachable, try alternate Berkeley location
ScopMirror alt = new ScopMirror(
SCOP_DOWNLOAD_ALTERNATE,
"dir.cla.scop.%s.txt","dir.des.scop.%s.txt",
"dir.hie.scop.%s.txt","dir.com.scop.%s.txt");
ScopMirror alt;
if (scopVersion.startsWith("2.")) {
alt = new ScopMirror(
SCOP_DOWNLOAD_ALTERNATE,
"dir.cla.scope.%s.txt","dir.des.scope.%s.txt",
"dir.hie.scope.%s.txt","dir.com.scope.%s.txt");
}
else {
alt = new ScopMirror(
SCOP_DOWNLOAD_ALTERNATE,
"dir.cla.scop.%s.txt","dir.des.scop.%s.txt",
"dir.hie.scop.%s.txt","dir.com.scop.%s.txt");
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The 2 blocks in the if/else look identical. What was the intention of this change?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One is scope while the other is scop.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! sorry I missed that.

mirrors.add(primary);
mirrors.add(alt);
}
Expand Down