[Pbuilder-maint] A sane guess at default Debian mirror for pbuilder
Junichi Uekawa
dancer at netfort.gr.jp
Tue May 29 00:25:29 UTC 2007
Hi,
>
> 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
individually.
regards,
junichi
--
dancer@{debian.org,netfort.gr.jp} Debian Project
More information about the Pbuilder-maint
mailing list