Revision: 4823
          http://sourceforge.net/p/vexi/code/4823
Author:   mkpg2
Date:     2015-11-09 01:22:17 +0000 (Mon, 09 Nov 2015)
Log Message:
-----------
Removing obselete hash check. (Updating handled via webstart so desktop icons 
cannot become obselete like under the old mode where the launcher was the 
program).

Modified Paths:
--------------
    trunk/org.vexi-launcher/src/main/java/org/vexi/launcher/LauncherMain.java

Modified: 
trunk/org.vexi-launcher/src/main/java/org/vexi/launcher/LauncherMain.java
===================================================================
--- trunk/org.vexi-launcher/src/main/java/org/vexi/launcher/LauncherMain.java   
2015-10-29 18:40:17 UTC (rev 4822)
+++ trunk/org.vexi-launcher/src/main/java/org/vexi/launcher/LauncherMain.java   
2015-11-09 01:22:17 UTC (rev 4823)
@@ -27,7 +27,6 @@
        
        private Map<String,String> params;
        private String applicationUrl;
-       private String hash;
        
        public LauncherMain() {
                this.launcher = createLauncher();
@@ -44,8 +43,6 @@
                        String v = k_v[1].trim();
                        if("application_url".equals(k)){
                                this.applicationUrl = v;
-                       }else if("hash".equals(k)){
-                               this.hash = v;
                        }
                }
        }
@@ -67,7 +64,6 @@
                                throw new Problem("'application_url' not 
specified (in conf or args)");
                        }
                        
-                       checkVersion();
                        fetchArgs();
                        launcher.initDotVexi();
                        launcher.go();          
@@ -98,31 +94,8 @@
                }catch (ConnectException e) {
                throw new Problem("Unable to connect: "+e.getMessage());
         }
-       }
+       }       
        
-       void checkVersion() throws Exception{
-               String hashes = readString(applicationUrl+"/launcher/versions");
-               if(hash==null){
-                       log.warn("no version check");
-               }else{
-                       for(String hash: hashes.split("\\s+")){
-                               hash = hash.trim();
-                               if(this.hash.equals(hash)){
-                                       return;
-                               }
-                       }
-                       
-                       StringBuilder sb = new StringBuilder();
-                       sb.append("** Launcher incompatible, please download 
new version **\n");
-                       sb.append("our hash: "+hash+"\n");
-                       sb.append("allowed: \n");
-                       for(String hash: hashes.split("\\s*\\r?\\n\\s*")){
-                               sb.append("    "+hash+"\n");
-                       }
-                       throw new Problem(sb.toString());
-               }
-       }
-       
        void fetchArgs() throws Exception{
                params = new LinkedHashMap();
                String args = readString(applicationUrl+"/launcher/args");

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Presto, an open source distributed SQL query engine for big data, initially
developed by Facebook, enables you to easily query your data on Hadoop in a 
more interactive manner. Teradata is also now providing full enterprise
support for Presto. Download a free open source copy now.
http://pubads.g.doubleclick.net/gampad/clk?id=250295911&iu=/4140
_______________________________________________
Vexi-svn mailing list
Vexi-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vexi-svn

Reply via email to