diff options
author | Richard Leitner <richard.leitner@skidata.com> | 2020-10-29 19:20:14 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-10-31 08:54:12 +0000 |
commit | 7a9019a8ec7f17e71143cc0fc98bbcde7ed4514b (patch) | |
tree | fd16c159e6de5189ef56ebcd2694a946c23a77b1 /meta | |
parent | 994ca65e6f828dd38e0d7d09fb5243147ba4e36b (diff) | |
download | poky-7a9019a8ec7f17e71143cc0fc98bbcde7ed4514b.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.
(From OE-Core rev: f18adf53dd4bf5dd3adef82b2dcc34a6cdfd0c89)
Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/lib/oe/package_manager/deb/__init__.py | 2 |
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): | |||
312 | if not pkgs: | 312 | if not pkgs: |
313 | return | 313 | return |
314 | 314 | ||
315 | os.environ['INTERCEPT_DIR'] = self.intercepts_dir | ||
316 | |||
315 | if with_dependencies: | 317 | if with_dependencies: |
316 | os.environ['APT_CONFIG'] = self.apt_conf_file | 318 | os.environ['APT_CONFIG'] = self.apt_conf_file |
317 | cmd = "%s purge %s" % (self.apt_get_cmd, ' '.join(pkgs)) | 319 | cmd = "%s purge %s" % (self.apt_get_cmd, ' '.join(pkgs)) |