- Timestamp:
- Mar 19, 2013, 11:00:06 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
AE/installer2/src/net/oni2/aeinstaller/backend/Settings.java
r649 r702 10 10 import java.util.Vector; 11 11 12 import net.oni2.aeinstaller.backend.appexecution.AppExecution; 13 import net.oni2.aeinstaller.backend.appexecution.AppExecutionResult; 14 12 15 import com.thoughtworks.xstream.XStream; 13 16 import com.thoughtworks.xstream.io.xml.StaxDriver; … … 79 82 cmd.add("which"); 80 83 cmd.add("wine"); 81 Vector<String>res = null;84 AppExecutionResult res = null; 82 85 try { 83 86 res = AppExecution.executeAndWait(cmd); … … 86 89 } 87 90 if (res != null) { 88 if (res. get(0).startsWith("/") && res.get(0).endsWith("wine")) {89 return res. get(0);91 if (res.output.get(0).startsWith("/") && res.output.get(0).endsWith("wine")) { 92 return res.output.get(0); 90 93 } 91 94 } … … 133 136 cmd.add("getconf"); 134 137 cmd.add("LONG_BIT"); 135 Vector<String>res = null;138 AppExecutionResult res = null; 136 139 try { 137 140 res = AppExecution.executeAndWait(cmd); … … 140 143 } 141 144 if (res != null) { 142 if (res. get(0).equals("64"))145 if (res.output.get(0).equals("64")) 143 146 return Architecture.AMD64; 144 147 }
Note:
See TracChangeset
for help on using the changeset viewer.