diff options
Diffstat (limited to 'meta/lib/oe/rootfs.py')
-rw-r--r-- | meta/lib/oe/rootfs.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/lib/oe/rootfs.py b/meta/lib/oe/rootfs.py index 7e8d5d15a2..a18472aeeb 100644 --- a/meta/lib/oe/rootfs.py +++ b/meta/lib/oe/rootfs.py | |||
@@ -409,7 +409,10 @@ class RpmRootfs(Rootfs): | |||
409 | # __db.00* (Berkeley DB files that hold locks, rpm specific environment | 409 | # __db.00* (Berkeley DB files that hold locks, rpm specific environment |
410 | # settings, etc.), that should not get into the final rootfs | 410 | # settings, etc.), that should not get into the final rootfs |
411 | self.pm.unlock_rpm_db() | 411 | self.pm.unlock_rpm_db() |
412 | bb.utils.remove(self.image_rootfs + "/install", True) | 412 | if os.path.isdir(self.pm.install_dir_path + "/tmp") and not os.listdir(self.pm.install_dir_path + "/tmp"): |
413 | bb.utils.remove(self.pm.install_dir_path + "/tmp", True) | ||
414 | if os.path.isdir(self.pm.install_dir_path) and not os.listdir(self.pm.install_dir_path): | ||
415 | bb.utils.remove(self.pm.install_dir_path, True) | ||
413 | 416 | ||
414 | 417 | ||
415 | class DpkgRootfs(Rootfs): | 418 | class DpkgRootfs(Rootfs): |