diff options
author | Laurentiu Palcu <laurentiu.palcu@intel.com> | 2014-01-31 18:49:12 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-02-11 11:53:44 +0000 |
commit | 8af55651ae30d4ae24569033d07f2a5d3dbd53d5 (patch) | |
tree | 3e5d0cb95deb3bad001bed8335a5efb2e16b26b9 | |
parent | d3a3b87ad97c6eb63f5585e8dbe49708a9f6972a (diff) | |
download | poky-8af55651ae30d4ae24569033d07f2a5d3dbd53d5.tar.gz |
lib/oe/package_manager.py: do not use stamps
Using stamps shortens rootfs/image creation because the package indexes
are not created again if no new package was installed in the deploy dir.
Unfortunately, there are some syncronization issues with
do_package_write_*() and the indexes are not properly created.
Will have to revisit this issue in the near future. For now, lose it.
(From OE-Core rev: 276f2a8a072ce243daa74210934ee63046e9c480)
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/lib/oe/package_manager.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py index 91f5f70d83..49bc12c745 100644 --- a/meta/lib/oe/package_manager.py +++ b/meta/lib/oe/package_manager.py | |||
@@ -902,8 +902,6 @@ class OpkgPM(PackageManager): | |||
902 | "MULTILIB_ARCHS"] | 902 | "MULTILIB_ARCHS"] |
903 | 903 | ||
904 | tmpdir = self.d.getVar('TMPDIR', True) | 904 | tmpdir = self.d.getVar('TMPDIR', True) |
905 | if os.path.exists(os.path.join(tmpdir, "stamps", "IPK_PACKAGE_INDEX_CLEAN")): | ||
906 | return | ||
907 | 905 | ||
908 | self.deploy_dir_lock() | 906 | self.deploy_dir_lock() |
909 | 907 | ||
@@ -947,8 +945,6 @@ class OpkgPM(PackageManager): | |||
947 | if result is not None: | 945 | if result is not None: |
948 | bb.fatal(result) | 946 | bb.fatal(result) |
949 | 947 | ||
950 | open(os.path.join(tmpdir, "stamps", "IPK_PACKAGE_INDEX_CLEAN"), "w").close() | ||
951 | |||
952 | def remove_packaging_data(self): | 948 | def remove_packaging_data(self): |
953 | bb.utils.remove(self.opkg_dir, True) | 949 | bb.utils.remove(self.opkg_dir, True) |
954 | # create the directory back, it's needed by PM lock | 950 | # create the directory back, it's needed by PM lock |
@@ -1173,8 +1169,6 @@ class DpkgPM(PackageManager): | |||
1173 | 1169 | ||
1174 | def write_index(self): | 1170 | def write_index(self): |
1175 | tmpdir = self.d.getVar('TMPDIR', True) | 1171 | tmpdir = self.d.getVar('TMPDIR', True) |
1176 | if os.path.exists(os.path.join(tmpdir, "stamps", "DEB_PACKAGE_INDEX_CLEAN")): | ||
1177 | return | ||
1178 | 1172 | ||
1179 | pkg_archs = self.d.getVar('PACKAGE_ARCHS', True) | 1173 | pkg_archs = self.d.getVar('PACKAGE_ARCHS', True) |
1180 | if pkg_archs is not None: | 1174 | if pkg_archs is not None: |
@@ -1218,8 +1212,6 @@ class DpkgPM(PackageManager): | |||
1218 | if result is not None: | 1212 | if result is not None: |
1219 | bb.fatal(result) | 1213 | bb.fatal(result) |
1220 | 1214 | ||
1221 | open(os.path.join(tmpdir, "stamps", "DEB_PACKAGE_INDEX_CLEAN"), "w+").close() | ||
1222 | |||
1223 | def _create_configs(self, archs, base_archs): | 1215 | def _create_configs(self, archs, base_archs): |
1224 | base_archs = re.sub("_", "-", base_archs) | 1216 | base_archs = re.sub("_", "-", base_archs) |
1225 | 1217 | ||