mirror of
https://git.yoctoproject.org/poky
synced 2026-04-20 00:32:13 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
126f038455
commit
b603dc96b3
@@ -403,9 +403,9 @@ class OpkgPM(OpkgDpkgPM):
|
||||
bb.fatal(result)
|
||||
|
||||
def remove_packaging_data(self):
|
||||
cachedir = oe.path.join(self.target_rootfs, self.d.getVar("localstatedir"), "cache", "opkg")
|
||||
bb.utils.remove(self.opkg_dir, True)
|
||||
# create the directory back, it's needed by PM lock
|
||||
bb.utils.mkdirhier(self.opkg_dir)
|
||||
bb.utils.remove(cachedir, True)
|
||||
|
||||
def remove_lists(self):
|
||||
if not self.from_feeds:
|
||||
|
||||
Reference in New Issue
Block a user