details: /erp/devel/pi-module-install/rev/b67c47f18f79
changeset: 6472:b67c47f18f79
user: Asier Lostalé <asier.lostale <at> openbravo.com>
date: Thu Feb 25 11:25:05 2010 +0100
summary: fixed bug 12407: Every Core upgrades creates a backup of the
sources, without rotation
diffstat:
src/org/openbravo/erpCommon/modules/ImportModule.java | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diffs (20 lines):
diff -r 179a803ce69b -r b67c47f18f79
src/org/openbravo/erpCommon/modules/ImportModule.java
--- a/src/org/openbravo/erpCommon/modules/ImportModule.java Mon Feb 22
13:08:10 2010 +0100
+++ b/src/org/openbravo/erpCommon/modules/ImportModule.java Thu Feb 25
11:25:05 2010 +0100
@@ -569,6 +569,16 @@
log4j.error(e);
}
+ // Do not maintain multiple backups for different old module's version,
remove old existent
+ // backups
+ for (File existentBackup : dir.listFiles()) {
+ if (existentBackup.getName().startsWith(moduleInDB.javapackage + "-")
+ && existentBackup.getName().endsWith(".zip")) {
+ log4j.info("Deleting old backup file " + existentBackup.getName());
+ Utility.deleteDir(existentBackup);
+ }
+ }
+
// Prepare backup for updates
if (module.getModuleID().equals("0")) { // Updating core
// set directories to zip
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits