Signed-off-by: Anthony F. McInerney <afm...@gmail.com> --- debian/apt-mirror-setup.templates | 8 ++++++++ generators/50mirror | 7 ++++++- 2 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/debian/apt-mirror-setup.templates b/debian/apt-mirror-setup.templates index 62d9bbb..e2a73c6 100644 --- a/debian/apt-mirror-setup.templates +++ b/debian/apt-mirror-setup.templates @@ -60,3 +60,11 @@ _Description: Continue without a network mirror? . If you are installing from a netinst CD and choose not to use a mirror, you will end up with only a very minimal base system. + +Template: mirror/http/source +Type: boolean +Default: true +# :sl2: +_Description: Generate deb-src for selected mirror +Set to false if you wish to comment out the deb-src line in +/etc/apt/sources.list. diff --git a/generators/50mirror b/generators/50mirror index 4cb6bc4..006f43d 100755 --- a/generators/50mirror +++ b/generators/50mirror @@ -252,4 +252,9 @@ while [ ! "$done" ]; do fi done -echo "deb-src $protocol://$hostname$directory $codename $dists" >> $file +db_get mirror/http/source +if [ "$RET" = false ]; then + echo "#deb-src $protocol://$hostname$directory $codename $dists" >> $file +else + echo "deb-src $protocol://$hostname$directory $codename $dists" >> $file +fi -- 2.0.0.rc0 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org