diff options
author | Saul Wold <sgw@linux.intel.com> | 2015-03-16 11:21:30 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-03-20 23:55:58 +0000 |
commit | 2ab66b85ec09762380e5a060ca0b3469e37340bd (patch) | |
tree | 90d00c6360cab72ecd333eb8f8e1c6a1c7092785 /meta/lib/oe/rootfs.py | |
parent | 05471f8710189a05504f9a3523f72e77a42646f6 (diff) | |
download | poky-2ab66b85ec09762380e5a060ca0b3469e37340bd.tar.gz |
package_manager: Create variable for install_dir_name
This patch creates a variable for the install_dir name so it can be
something other than /install, also by doing this we can correctly
clean up the empty directories (/install/tmp) during the clean-up
phase. The new default is /oe_install so as to not conflict with other
possible packages that might use /install to place files.
[YOCTO #7353]
(From OE-Core rev: 335effec42099666d0fb433b31981edcb0dae9a0)
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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): |