diff options
Diffstat (limited to 'catalog-core')
-rw-r--r-- | catalog-core/catalog-mgr/src/main/java/org/openo/commontosca/catalog/wrapper/PackageWrapper.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/catalog-core/catalog-mgr/src/main/java/org/openo/commontosca/catalog/wrapper/PackageWrapper.java b/catalog-core/catalog-mgr/src/main/java/org/openo/commontosca/catalog/wrapper/PackageWrapper.java index ae35659d..1f1e245f 100644 --- a/catalog-core/catalog-mgr/src/main/java/org/openo/commontosca/catalog/wrapper/PackageWrapper.java +++ b/catalog-core/catalog-mgr/src/main/java/org/openo/commontosca/catalog/wrapper/PackageWrapper.java @@ -169,12 +169,12 @@ public class PackageWrapper { tempCsarPath, PackageWrapperUtil.getPackageFormat(packateDbData.getFormat())); LOG.info("Package parse success ! serviceTemplateId = " + serviceTemplateId); } catch (Exception e1) { - LOG.error("Parse package error ! "); - String packagePath = PackageWrapperUtil.getPackagePath(packageData.getCsarId()); - FileManagerFactory.createFileManager().delete(packagePath); - if (tempDirName != null) { - ToolUtil.deleteDir(new File(tempDirName)); - } + LOG.error("Parse package error ! Delete the package data from database"); + //String packagePath = PackageWrapperUtil.getPackagePath(packageData.getCsarId()); + //FileManagerFactory.createFileManager().delete(packagePath); + //if (tempDirName != null) { + //ToolUtil.deleteDir(new File(tempDirName)); + //} PackageManager.getInstance().deletePackage(packateDbData.getCsarId()); throw new Exception(e1); } |