[elbe-devel] [PATCH] sysroot: Install debootstrap packages in pkg-list
Manuel Traut
manut at linutronix.de
Fri Mar 1 07:28:06 CET 2019
On 15:13 Tue 26 Feb , bage at linutronix.de wrote:
> 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 | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/elbepack/elbeproject.py b/elbepack/elbeproject.py
> index cef53296..9e2a9e99 100644
> --- a/elbepack/elbeproject.py
> +++ b/elbepack/elbeproject.py
> @@ -251,7 +251,8 @@ 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")]
> + expl = self.xml.get_target_packages()
> + ignore_pkgs = [p.et.text for p in self.xml.node("debootstrappkgs") if p.et.text not in expl]
basicly ok, but this line is longer 80 charecters, what about sth like
+ 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
>
>
> _______________________________________________
> elbe-devel mailing list
> elbe-devel at linutronix.de
> https://lists.linutronix.de/mailman/listinfo/elbe-devel
More information about the elbe-devel
mailing list