Skip to content

Commit

Permalink
* rewrite code without using java 1.6 features
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5829 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
f1ori committed Apr 17, 2009
1 parent d93a2a6 commit 94a6c83
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions htroot/ConfigUpdate_p.java
Expand Up @@ -63,21 +63,21 @@ public static serverObjects respond(final httpRequestHeader header, final server
if (release.length() > 0) {
try {
yacyVersion versionToDownload = new yacyVersion(new yacyURL(release, null));

// replace this version with version which contains public key
yacyVersion.DevAndMainVersions releases = yacyVersion.allReleases(false);
if(versionToDownload.mainRelease) {
yacyVersion repVersionToDownload = releases.main.ceiling(versionToDownload);
if(repVersionToDownload.equals(versionToDownload))
versionToDownload = repVersionToDownload;
} else {
yacyVersion repVersionToDownload = releases.dev.ceiling(versionToDownload);
if(repVersionToDownload.equals(versionToDownload))
versionToDownload = repVersionToDownload;
yacyVersion.DevAndMainVersions allReleases = yacyVersion.allReleases(false);
TreeSet<yacyVersion> mostReleases = versionToDownload.mainRelease
? allReleases.main : allReleases.dev;
for(yacyVersion rel : mostReleases) {
if(rel.equals(versionToDownload)) {
versionToDownload = rel;
break;
}
}
versionToDownload.downloadRelease();
versionToDownload.downloadRelease();
} catch (final IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
Expand Down

0 comments on commit 94a6c83

Please sign in to comment.