]> code.ossystems Code Review - openembedded-core.git/commit
deb: export INTERCEPT_DIR for remove actions
authorRichard Leitner <richard.leitner@skidata.com>
Thu, 29 Oct 2020 18:20:14 +0000 (19:20 +0100)
committerAnuj Mittal <anuj.mittal@intel.com>
Thu, 18 Feb 2021 04:01:27 +0000 (12:01 +0800)
commit697c75071932a48ec8d34b778fca68e18bec433a
tree00f767252da34571e2b6c20b986027f26695022f
parent29286073251847eb9931e232b8ff5e4a71f5de5f
deb: export INTERCEPT_DIR for remove actions

During the do_populate_sdk task apt-get purge is called by deb's remove
function. This fails with error messages similiar to the following one
if any of the included packages uses intercepts as the INTERCEPT_DIR
isn't exported:

.../*.postinst: line 4: /postinst_intercept: No such file or directory

Therefore fix it by exporting the INTERCEPT_DIR variable within the
remove function.

Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit f18adf53dd4bf5dd3adef82b2dcc34a6cdfd0c89)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
meta/lib/oe/package_manager/deb/__init__.py