]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.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)
committerAnuj Mittal <anuj.mittal@intel.com>
Mon, 6 Apr 2020 07:17:05 +0000 (15:17 +0800)
commit71711f5f20fc3744be4c9188a75606f60d524ff9
tree208515bda0a1e7b016767846b1495d3961b9b244
parent978eeeb7c975441e5b05253a63b9d954af2b903b
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>
(cherry picked from commit fc974977cea389f54e7fc7de7b1c8fd3d8bafe58)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
meta/lib/oe/package_manager.py