Hi Karsten,

Quoting Karsten Merker (2020-11-30 20:55:45)
> Do you have any idea what could be going wrong here?

thanks a lot for your extensive bug report! The problem was introduced just
recently when I tried to source the packages with a certain priority only from
the suite given as a CLI argument. Here, the value you set with --include gets
overwritten:

https://sources.debian.org/src/mmdebstrap/0.7.2-3/mmdebstrap/#L2099

And this happens only when you mix more than one Packages file -- which happens
to be the case for Debian ports because arch-any and arch-all Packages files
are split. Here is how to trigger the bug without Debian ports and with my
native architecture (amd64):

        $ mmdebstrap --customize-hook='chroot "$1" dpkg -l | grep doc-debian' \
                --include=doc-debian unstable /dev/null \
                "deb http://deb.debian.org/debian/ sid main" \
                "deb http://deb.debian.org/debian/ unstable main"

This will fail because the "grep" in --customize-hook will fail and thus
confirm the fact that doc-debian didn't get installed as requested.

I will create a test case for this to prevent this from happening in the future
and fix the bug asap.

Thank you! :)

cheers, josch

Attachment: signature.asc
Description: signature

Reply via email to