From c1c0ebe6f7a14c335d89c116c521751592c888e3 Mon Sep 17 00:00:00 2001 From: Gui Chen Date: Mon, 28 May 2012 13:54:50 +0800 Subject: [PATCH] reset LD_PRELOAD for chroot env libs in LD_PRELOAD can't be preloaded in chroot, so reset it to clean such errors Signed-off-by: Gui Chen --- plugins/backend/yumpkgmgr.py | 1 + plugins/backend/zypppkgmgr.py | 1 + 2 files changed, 2 insertions(+) diff --git a/plugins/backend/yumpkgmgr.py b/plugins/backend/yumpkgmgr.py index db846d9..8911c05 100644 --- a/plugins/backend/yumpkgmgr.py +++ b/plugins/backend/yumpkgmgr.py @@ -320,6 +320,7 @@ class Yum(BackendPlugin, yum.YumBase): def runInstall(self, checksize = 0): os.environ["HOME"] = "/" + os.environ["LD_PRELOAD"] = "" try: (res, resmsg) = self.buildTransaction() except yum.Errors.RepoError, e: diff --git a/plugins/backend/zypppkgmgr.py b/plugins/backend/zypppkgmgr.py index b34596f..3abf6c7 100755 --- a/plugins/backend/zypppkgmgr.py +++ b/plugins/backend/zypppkgmgr.py @@ -384,6 +384,7 @@ class Zypp(BackendPlugin): def runInstall(self, checksize = 0): os.environ["HOME"] = "/" + os.environ["LD_PRELOAD"] = "" self.buildTransaction() todo = zypp.GetResolvablesToInsDel(self.Z.pool()) -- 2.7.4