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

Attachment: signature.asc
Description: signature

Reply via email to