Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Debian User (http://www.linux-archive.org/debian-user/)
-   -   Remove any /tmp/yum.log that may be present on the installed system (#630327). (http://www.linux-archive.org/debian-user/425041-remove-any-tmp-yum-log-may-present-installed-system-630327-a.html)

Chris Lumens 09-09-2010 08:45 PM

Remove any /tmp/yum.log that may be present on the installed system (#630327).
 
---
pyanaconda/yuminstall.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/pyanaconda/yuminstall.py b/pyanaconda/yuminstall.py
index 6033b5f..ef19a90 100644
--- a/pyanaconda/yuminstall.py
+++ b/pyanaconda/yuminstall.py
@@ -1175,6 +1175,9 @@ reposdir=/etc/anaconda.repos.d,/tmp/updates/anaconda.repos.d,/tmp/product/anacon
# unhappy (#496961)
iutil.resetRpmDb(anaconda.rootPath)

+ if os.access(anaconda.rootPath + "/tmp/yum.log", os.R_OK):
+ os.unlink(anaconda.rootPath + "/tmp/yum.log")
+
def doBackendSetup(self, anaconda):
if anaconda.dir == DISPATCH_BACK:
return DISPATCH_BACK
--
1.7.1.1

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


All times are GMT. The time now is 06:01 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.