[elbe-devel] [PATCH v2] sysroot: Install debootstrap packages in pkg-list
bage at linutronix.de
bage at linutronix.de
Fri Mar 1 13:10:03 CET 2019
From: Bastian Germann <bage at linutronix.de>
If a package in the pkg-list is also in debootstrap the package's *-dev package
is ignored in sysroot installation. Add a check for this case to prevent it.
Closes issue #142.
Signed-off-by: Bastian Germann <bage at linutronix.de>
---
elbepack/elbeproject.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/elbepack/elbeproject.py b/elbepack/elbeproject.py
index ea3ee02d..adb6c74a 100644
--- a/elbepack/elbeproject.py
+++ b/elbepack/elbeproject.py
@@ -251,7 +251,9 @@ class ElbeProject (object):
self.install_packages(self.sysrootenv, buildenv=False)
# ignore packages from debootstrap
- ignore_pkgs = [p.et.text for p in self.xml.node("debootstrappkgs")]
+ tpkgs = self.xml.get_target_packages()
+ bspkgs = self.xml.node("debootstrappkgs")
+ ignore_pkgs = [p.et.text for p in bspkgs if p.et.text not in tpkgs]
ignore_dev_pkgs = []
if self.xml.has('target/pkg-blacklist/sysroot'):
ignore_dev_pkgs = [p.et.text for p in self.xml.node(
--
2.11.0
More information about the elbe-devel
mailing list