Changeset 657 for AE/installer2/src/net/oni2/aeinstaller/backend/packages
- Timestamp:
- Jan 29, 2013, 12:43:01 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
AE/installer2/src/net/oni2/aeinstaller/backend/packages/Package.java
r648 r657 11 11 import java.net.URISyntaxException; 12 12 import java.util.HashSet; 13 14 import org.apache.commons.io.FileUtils; 13 15 14 16 import net.oni2.aeinstaller.backend.Paths; … … 82 84 } 83 85 86 private void clearLocalOnlyInfo() { 87 aeVersion = 0; 88 bslInstallType = EBSLInstallType.NORMAL; 89 90 dependencies = new HashSet<Integer>(); 91 incompatibilities = new HashSet<Integer>(); 92 unlockLevel = new HashSet<Integer>(); 93 94 exeFile = null; 95 workingDir = null; 96 iconFile = null; 97 } 98 84 99 /** 85 100 * Update information for local package existence … … 109 124 iconFile = mi.getIconFile(); 110 125 } else { 126 clearLocalOnlyInfo(); 111 127 System.err.println("No config found for mod folder: " 112 128 + getLocalPath().getPath()); … … 311 327 312 328 /** 329 * @return Get the depot Node 330 */ 331 public NodeMod getNode() { 332 return node; 333 } 334 335 /** 313 336 * @return Depot page URI 314 337 */ … … 398 421 } 399 422 423 /** 424 * Delete the local package folder 425 */ 426 public void deleteLocalPackage() { 427 if (getLocalPath().exists()) { 428 try { 429 FileUtils.deleteDirectory(getLocalPath()); 430 updateLocalData(); 431 } catch (IOException e) { 432 e.printStackTrace(); 433 } 434 } 435 } 436 400 437 @Override 401 438 public int compareTo(Package o) {
Note:
See TracChangeset
for help on using the changeset viewer.