]> code.ossystems Code Review - openembedded-core.git/commit
lib/oe/package_manager: don't try to rm /var/lib/opkg
authorJan Luebbe <jlu@pengutronix.de>
Wed, 1 Apr 2020 14:58:05 +0000 (16:58 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 1 Apr 2020 22:18:09 +0000 (23:18 +0100)
commitfc974977cea389f54e7fc7de7b1c8fd3d8bafe58
tree959cacda423d367fd94eade669637f58c0e4adcd
parent3ffb339dd55f8ca7c952fd3390608510f772e19f
lib/oe/package_manager: don't try to rm /var/lib/opkg

As opkglibdir starts with a /, os.path.join will ignore
self.target_rootfs, leading to an attempt to remove /var/lib/opkg.

This only fails if it exists on the host, explaining why this remained
undiscovered for long.

Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/package_manager.py