[Whonix-devel] Bug#940188: compatibility with grml-debootstrap, pbuilder and cowbuilder

Johannes Schauer josch at debian.org
Sun Sep 15 14:58:55 CEST 2019


Hi,

Quoting Jonas Smedegaard (2019-09-15 13:18:18)
> If mmdebstrap were to support curl-style URL expansion, then current 
> wrappers for debootstrap supporting only a single string could be abused 
> to pass an expandable set of strings, like this:
> 
> Perhaps mmdebstrab could support curl-style glob expansion of URLs + 
> suite splitting, to allow passing multiple apt lines through wrappers 
> which expects only a single base URL, like this:
> 
>   https://{deb.debian.org/debian/dists/{buster,buster-updates},security.debian.org/debian-security/dists/buster/updates}
> 
> expanding to this:
> 
>   https://deb.debian.org/debian buster
>   https://deb.debian.org/debian buster-updates
>   https://security.debian.org/debian-security buster/updates
> 
> Here's a quick one-line that maybe better explains what I mean:
> 
> echo 'https://{deb.debian.org/debian/dists/{buster,buster-updates},security.debian.org/debian-security/dists/buster/updates}' | perl -MFile::Glob=:bsd_glob -nE 'say map { s,/dists/, ,r } bsd_glob($_, GLOB_BRACE | GLOB_NOMAGIC )'
> 

what I still don't understand is why this would be needed.

Currently, if you do:

mmdebstrap buster ./output-directory

Then the resulting sources.list will be equal to what you wrote above.

Maybe I'm just dumb here but could either of you please go back to the start
and try to explain precisely what it is, that you think is missing from
mmdebstrap and why you need it?

Thanks!

cheers, josch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: signature
URL: <http://www.whonix.org/pipermail/whonix-devel/attachments/20190915/503c2e10/attachment.sig>


More information about the Whonix-devel mailing list