[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [Pbuilder-maint] A sane guess at default Debian mirror for pbuilder


> d-i uses the following hack to figure out where to download udebs from
> when building installation media:
>                 grep '^deb[ \t]' $(SYSTEM_SOURCES_LIST) \
>                 |grep -v '^deb[ \t]cdrom:' \
>                 |grep -v '\(security.debian.org\|volatile.debian.\(net\|org\)\)' \
>                 |grep '[ \t]main' \
>                 |awk '{print $$1 " " $$2}' \
>                 |sed "s,/* *$$, $(SUITE) $(UDEB_COMPONENTS)," \
>                 |sed "s,^deb file,deb copy," \
>                 |perl -ne 'print unless $$seen{$$_}; $$seen{$$_}=1' ; \

This chunk of code looks volatile, and vulnerable to changes in mirror
structures, if I duplicated it to pbuilder.  I'm now more inclined to
have some common code that can be shared from several applications,
and let apt parse sources.list, rather than parsing sources.list

dancer@{debian.org,netfort.gr.jp}   Debian Project

Reply to: