pbuilder-apt-config
Loïc Minier
lool at dooz.org
Sun Jan 31 14:09:40 UTC 2010
Trying to address your concerns with the builtin map not being data
driven, I looked at the code again and realized there's a case which
makes this relatively hard: PPAs. Currently, the code of
builtin_mirror_map() has:
[...]
debian)
echo "http://ftp.us.debian.org/debian/"
;;
debian-archive)
echo "http://archive.debian.org/debian/"
;;
ppa:*)
people_ppa="${archive#ppa:}"
case "$people_ppa" in
*/*)
:
;;
*)
people_ppa="$people_ppa/ppa"
esac
echo "http://ppa.launchpad.net/$people_ppa/ubuntu/"
;;
[...]
I could move all configs except ppa:* to a map variable, something
like:
builtin_map="
backports.org http://www.backports.org/backports.org/
debian http://ftp.us.debian.org/debian/
debian-archive http://archive.debian.org/debian/
"
that would make it easy to dump the map, but I would have to special
case PPAs. :-/
--
Loïc Minier
More information about the Pbuilder-maint
mailing list