From c3cdd49ad336609afa5dd7d4706c06d22fb399f3 Mon Sep 17 00:00:00 2001 From: Gui Chen Date: Wed, 9 Oct 2013 22:29:41 -0400 Subject: [PATCH] don't close file handlers as rpm will handle it as new version of rpm can handle file handlers correctly in most time, we don't repeat it in mic itself Change-Id: I48b413e2a3aaf823f306c35e66dcfca7e002306e Signed-off-by: Gui Chen --- plugins/backend/yumpkgmgr.py | 8 -------- plugins/backend/zypppkgmgr.py | 8 -------- 2 files changed, 16 deletions(-) diff --git a/plugins/backend/yumpkgmgr.py b/plugins/backend/yumpkgmgr.py index 8a297be..baba380 100644 --- a/plugins/backend/yumpkgmgr.py +++ b/plugins/backend/yumpkgmgr.py @@ -150,14 +150,6 @@ class Yum(BackendPlugin, yum.YumBase): yum.YumBase.close(self) self.closeRpmDB() - if not os.path.exists("/etc/fedora-release") and \ - not os.path.exists("/etc/meego-release"): - for i in range(3, os.sysconf("SC_OPEN_MAX")): - try: - os.close(i) - except: - pass - def __del__(self): pass diff --git a/plugins/backend/zypppkgmgr.py b/plugins/backend/zypppkgmgr.py index 01fb503..1b7d8dd 100755 --- a/plugins/backend/zypppkgmgr.py +++ b/plugins/backend/zypppkgmgr.py @@ -99,14 +99,6 @@ class Zypp(BackendPlugin): self.closeRpmDB() - if not os.path.exists("/etc/fedora-release") and \ - not os.path.exists("/etc/meego-release"): - for i in range(3, os.sysconf("SC_OPEN_MAX")): - try: - os.close(i) - except: - pass - def __del__(self): self.close() -- 2.7.4