## @file\r
# Install distribution package.\r
#\r
-# Copyright (c) 2011 - 2014, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2011 - 2015, Intel Corporation. All rights reserved.<BR>\r
#\r
# This program and the accompanying materials are licensed and made available \r
# under the terms and conditions of the BSD License which accompanies this \r
Logger.Quiet(ST.MSG_PYTHON_ON % (python_version(),\r
platform) + format_exc())\r
finally:\r
- Logger.Quiet(ST.MSG_REMOVE_TEMP_FILE_STARTED)\r
- if DistFile:\r
- DistFile.Close()\r
- if ContentZipFile:\r
- ContentZipFile.Close()\r
- if GlobalData.gUNPACK_DIR:\r
- rmtree(GlobalData.gUNPACK_DIR)\r
- GlobalData.gUNPACK_DIR = None\r
- Logger.Quiet(ST.MSG_REMOVE_TEMP_FILE_DONE)\r
+ if ReturnCode != UPT_ALREADY_INSTALLED_ERROR:\r
+ Logger.Quiet(ST.MSG_REMOVE_TEMP_FILE_STARTED)\r
+ if DistFile:\r
+ DistFile.Close()\r
+ if ContentZipFile:\r
+ ContentZipFile.Close()\r
+ if GlobalData.gUNPACK_DIR:\r
+ rmtree(GlobalData.gUNPACK_DIR)\r
+ GlobalData.gUNPACK_DIR = None\r
+ Logger.Quiet(ST.MSG_REMOVE_TEMP_FILE_DONE)\r
if ReturnCode == 0:\r
Logger.Quiet(ST.MSG_FINISH)\r
return ReturnCode\r