Author: nextgens
Date: 2007-03-11 16:09:26 +0000 (Sun, 11 Mar 2007)
New Revision: 12099
Modified:
trunk/apps/new_installer/src/Sha1Test.java
Log:
installer: few improvements to Sha1test
Modified: trunk/apps/new_installer/src/Sha1Test.java
===================================================================
--- trunk/apps/new_installer/src/Sha1Test.java 2007-03-11 12:23:36 UTC (rev
12098)
+++ trunk/apps/new_installer/src/Sha1Test.java 2007-03-11 16:09:26 UTC (rev
12099)
@@ -29,12 +29,12 @@
if(sha1test(path+filename)) System.exit(0);
get(URI2, path+filename);
}catch(FileNotFoundException e){
- System.out.println("Not found, ignoring");
+ System.out.println("Not found, let's ignore
that mirror.");
}
count++;
try{
Thread.sleep(5000);
- }catch(Exception e){
+ }catch(IOException e){
}
}
System.out.println("No mirror is available at the moment,
please try again later");
@@ -46,7 +46,7 @@
try{
FileInputStream fis = null;
BufferedInputStream bis = null;
- String result=new String();
+ String result = "";
// We compute the hash
//
http://java.sun.com/developer/TechTips/1998/tt0915.html#tip2