Here's a new version of generators/60local. I've added support for deb-src, and the syntax for apt-setup/local../repository has changed. Also the key handling is now a bit more robust, because every key is on it's own file.
Colin suggested that the templates are not necessary because a dummy template is generated on the fly if needed. I'm not sure what happens if the db_get-commands fail in the case that some settings are not set.
-- #!/bin/sh set -e . /usr/share/debconf/confmodule file="$1" # initial value i=0 while db_get "apt-setup/local$i/repository" && [ "$RET" ]; do repository="$RET" db_get apt-setup/local$i/comment comment="$RET" db_get apt-setup/local$i/key key="$RET" echo >> $file cat >> $file <<EOF ## $comment deb $repository EOF # if true, add a line for deb-src db_get apt-setup/local$i/source if [ "$RET" = true ]; then cat >> $file <<EOF deb-src $repository EOF if [ -n $key ]; then # fetch the key wget $key -O /tmp/key$i.pub # add it to the keyring apt-key add /tmp/key$i.pub fi # increase $i by 1 i="$(($i + 1))" done -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]