summaryrefslogtreecommitdiffstats
path: root/meta/lib/oe
diff options
context:
space:
mode:
authorRichard Leitner <richard.leitner@skidata.com>2020-10-29 19:20:14 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-10-31 08:53:13 +0000
commitf18adf53dd4bf5dd3adef82b2dcc34a6cdfd0c89 (patch)
tree83c328fc9342720700b12fcb4ce53859ebd08b3b /meta/lib/oe
parentc7472925feb53ce92c1799feba2b7a9104e3f38f (diff)
downloadopenembedded-core-contrib-f18adf53dd4bf5dd3adef82b2dcc34a6cdfd0c89.tar.gz
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>
Diffstat (limited to 'meta/lib/oe')
-rw-r--r--meta/lib/oe/package_manager/deb/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/lib/oe/package_manager/deb/__init__.py b/meta/lib/oe/package_manager/deb/__init__.py
index 26157f591a..5120920e70 100644
--- a/meta/lib/oe/package_manager/deb/__init__.py
+++ b/meta/lib/oe/package_manager/deb/__init__.py
@@ -312,6 +312,8 @@ class DpkgPM(OpkgDpkgPM):
if not pkgs:
return
+ os.environ['INTERCEPT_DIR'] = self.intercepts_dir
+
if with_dependencies:
os.environ['APT_CONFIG'] = self.apt_conf_file
cmd = "%s purge %s" % (self.apt_get_cmd, ' '.join(pkgs))