fix rpm db4 error(9): bad file descriptor
authorGui Chen <gui.chen@intel.com>
Wed, 1 Feb 2012 08:43:29 +0000 (16:43 +0800)
committerGui Chen <gui.chen@intel.com>
Wed, 1 Feb 2012 08:43:29 +0000 (16:43 +0800)
commit121b13cce3a302d586b8945fa311dc6afd55b3f3
tree1d6b2acfff5cb53f0f658ae07e2cd4f318baad4b
parent22844ce9dd3a464e3affe071c6e29f024beaa928
fix rpm db4 error(9): bad file descriptor

this bug root causes many issues, including 'failed to unmap loop',
it's caused by the unclosed rpmdb in yum backend, which is closed
by self.ts.close() in this commit.
Besides, self.closeRpmDB will set self._ts to None, so its order
would be put in the back.

Signed-off-by: Gui Chen <gui.chen@intel.com>
mic/imager/baseimager.py
plugins/backend/yumpkgmgr.py
plugins/backend/zypppkgmgr.py