[oe-commits] Hongxu Jia : lib/oe/rootfs.py: Tweak the rootfs removing operation

git at git.openembedded.org git at git.openembedded.org
Tue Feb 11 11:57:01 UTC 2014


Module: openembedded-core.git
Branch: master-next
Commit: 66d86c4bbb9423c9fe0fc89005530be54068d401
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=66d86c4bbb9423c9fe0fc89005530be54068d401

Author: Hongxu Jia <hongxu.jia at windriver.com>
Date:   Sun Jan 26 18:01:13 2014 +0800

lib/oe/rootfs.py: Tweak the rootfs removing operation

Move the bb.utils.remove(self.image_rootfs, True) from the base class
constructor, to Opkg/Ipkg constructors after super's constructor is
called.

Signed-off-by: Hongxu Jia <hongxu.jia at windriver.com>
Signed-off-by: Laurentiu Palcu <laurentiu.palcu at intel.com>

---

 meta/lib/oe/rootfs.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/meta/lib/oe/rootfs.py b/meta/lib/oe/rootfs.py
index 75fba39..be9761c 100644
--- a/meta/lib/oe/rootfs.py
+++ b/meta/lib/oe/rootfs.py
@@ -21,9 +21,6 @@ class Rootfs(object):
         self.image_rootfs = self.d.getVar('IMAGE_ROOTFS', True)
         self.deploy_dir_image = self.d.getVar('DEPLOY_DIR_IMAGE', True)
 
-        bb.utils.remove(self.image_rootfs, True)
-        bb.utils.remove(self.d.getVar('MULTILIB_TEMP_ROOTFS', True), True)
-
         self.install_order = Manifest.INSTALL_ORDER
 
     @abstractmethod
@@ -374,6 +371,8 @@ class DpkgRootfs(Rootfs):
     def __init__(self, d, manifest_dir):
         super(DpkgRootfs, self).__init__(d)
 
+        bb.utils.remove(self.image_rootfs, True)
+        bb.utils.remove(self.d.getVar('MULTILIB_TEMP_ROOTFS', True), True)
         self.manifest = DpkgManifest(d, manifest_dir)
         self.pm = DpkgPM(d, d.getVar('IMAGE_ROOTFS', True),
                          d.getVar('PACKAGE_ARCHS', True),
@@ -447,6 +446,8 @@ class OpkgRootfs(Rootfs):
     def __init__(self, d, manifest_dir):
         super(OpkgRootfs, self).__init__(d)
 
+        bb.utils.remove(self.image_rootfs, True)
+        bb.utils.remove(self.d.getVar('MULTILIB_TEMP_ROOTFS', True), True)
         self.manifest = OpkgManifest(d, manifest_dir)
         self.opkg_conf = self.d.getVar("IPKGCONF_TARGET", True)
         self.pkg_archs = self.d.getVar("ALL_MULTILIB_PACKAGE_ARCHS", True)



More information about the Openembedded-commits mailing list