From: Gui Chen Date: Thu, 10 Oct 2013 02:29:41 +0000 (-0400) Subject: don't close file handlers as rpm will handle it X-Git-Tag: 0.22~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c3cdd49ad336609afa5dd7d4706c06d22fb399f3;p=tools%2Fmic.git 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 --- 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()