]> code.ossystems Code Review - openembedded-core.git/commit
package_manager/deb: Fix image generation with package removal
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 14 Feb 2021 14:38:21 +0000 (14:38 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 16 Feb 2021 11:28:01 +0000 (11:28 +0000)
commitf23c7e319a192ada14bb9a82822ef2967309aaea
treeb4457bda1f60775c96f05845a645f93b8b312ba7
parent416bc7b697764075fbf73683cd8bddf36d839244
package_manager/deb: Fix image generation with package removal

When building SDKs with the deb backend you could see errors like:

Setting up nativesdk-python3-ndg-httpsclient (0.5.1-r0) ...
mkdir: cannot create directory ‘/usr/lib/opkg’: Permission denied
dpkg: error processing package nativesdk-python3-ndg-httpsclient (--configure):

which is due to environment misconfiguration when removing packages.

Fix this by setting the same environment variables as used for installation.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/package_manager/deb/__init__.py