On Tue, 17 Jan 2006, Timo Aaltonen wrote:
I'll make another patch tomorrow.
Ok, here's the script. Could something like this work? Note that there are more debconf-keys (three per entry). That would mean adding templates for all apt-setup/local[0-9]/{comment, repository, key}, which would add 30 templates?
This also assumes that /tmp and apt-key are ready for abuse. t --- #!/bin/sh set -e . /usr/share/debconf/confmodule file="$1" for i in 0 1 2 3 4 5 6 7 8 9; do db_get apt-setup/local$i/comment comment="$RET" db_get apt-setup/local$i/repository repository="$RET" db_get apt-setup/local$i/key key="$RET" if [ -n $repository ]; then echo >> $file cat >> $file <<EOF ##$comment $repository EOF fi if [ -n $key ]; then # fetch the key wget $key -O /tmp/repository$1.key # add it to the keyring apt-key add /tmp/repository$1.key fi done -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]