about summary refs log tree commit diff stats
path: root/update/plugin/subversion/trunk/src
diff options
context:
space:
mode:
Diffstat (limited to 'update/plugin/subversion/trunk/src')
-rw-r--r--update/plugin/subversion/trunk/src/com/fourisland/instadisc/update/svn/Main.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/update/plugin/subversion/trunk/src/com/fourisland/instadisc/update/svn/Main.java b/update/plugin/subversion/trunk/src/com/fourisland/instadisc/update/svn/Main.java index 1bc9a07..16e2dd1 100644 --- a/update/plugin/subversion/trunk/src/com/fourisland/instadisc/update/svn/Main.java +++ b/update/plugin/subversion/trunk/src/com/fourisland/instadisc/update/svn/Main.java
@@ -53,7 +53,7 @@ public class Main {
53 config.setServerURL(new URL(centralServer)); 53 config.setServerURL(new URL(centralServer));
54 XmlRpcClient client = new XmlRpcClient(); 54 XmlRpcClient client = new XmlRpcClient();
55 client.setConfig(config); 55 client.setConfig(config);
56 client.execute("InstaDisc.sendFromUpdate", new Object[]{username, 56 Integer resp = (Integer) client.execute("InstaDisc.sendFromUpdate", new Object[]{username,
57 (new MD5(username + ":" + (new MD5(password)).hash() + ":" + verID)).hash(), 57 (new MD5(username + ":" + (new MD5(password)).hash() + ":" + verID)).hash(),
58 verID, 58 verID,
59 subscription, 59 subscription,
@@ -62,6 +62,11 @@ public class Main {
62 path, 62 path,
63 "a:0:{}" 63 "a:0:{}"
64 }); 64 });
65
66 if (resp == 2)
67 {
68 main(args);
69 }
65 } catch (XmlRpcException ex) 70 } catch (XmlRpcException ex)
66 { 71 {
67 Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex); 72 Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
@@ -72,7 +77,7 @@ public class Main {
72 } 77 }
73 78
74 public static String getArg(int arg, String[] args) { 79 public static String getArg(int arg, String[] args) {
75 if (args.length < (arg+1)) 80 if (args.length < (arg + 1))
76 { 81 {
77 System.out.println("Program requires 7 arguments and you only provided " + arg); 82 System.out.println("Program requires 7 arguments and you only provided " + arg);
78 System.exit(1); 83 System.exit(1);