diff options
author | Ross Burton <ross@burtonini.com> | 2020-12-01 15:23:05 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-12-06 23:17:28 +0000 |
commit | b603dc96b377f0b3c59bc8dccddd0c0b5f80706c (patch) | |
tree | 96be11de778603b400e09f2f6953dc26ac53cb77 /meta | |
parent | 126f03845583f112006401472ad2845583bc6436 (diff) | |
download | poky-b603dc96b377f0b3c59bc8dccddd0c0b5f80706c.tar.gz |
package_manager/ipk: improve remove_packaging_data
/var/cache/opkg wasn't being deleted, and /var/lib/opkg doesn't need
to exist as there are no lockfiles that write into it after this step.
(From OE-Core rev: 2209cef2cbe5fbdd5562f13f84ae2a3935f4fb61)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/lib/oe/package_manager/ipk/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/lib/oe/package_manager/ipk/__init__.py b/meta/lib/oe/package_manager/ipk/__init__.py index 2753b139ed..da488c1c7f 100644 --- a/meta/lib/oe/package_manager/ipk/__init__.py +++ b/meta/lib/oe/package_manager/ipk/__init__.py | |||
@@ -403,9 +403,9 @@ class OpkgPM(OpkgDpkgPM): | |||
403 | bb.fatal(result) | 403 | bb.fatal(result) |
404 | 404 | ||
405 | def remove_packaging_data(self): | 405 | def remove_packaging_data(self): |
406 | cachedir = oe.path.join(self.target_rootfs, self.d.getVar("localstatedir"), "cache", "opkg") | ||
406 | bb.utils.remove(self.opkg_dir, True) | 407 | bb.utils.remove(self.opkg_dir, True) |
407 | # create the directory back, it's needed by PM lock | 408 | bb.utils.remove(cachedir, True) |
408 | bb.utils.mkdirhier(self.opkg_dir) | ||
409 | 409 | ||
410 | def remove_lists(self): | 410 | def remove_lists(self): |
411 | if not self.from_feeds: | 411 | if not self.from_feeds: |