From 3483d38fb43761ac8ead2c5a5caa1770249fe035 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Minier?= Date: Sat, 30 Jan 2010 11:38:50 +0100 Subject: Add Debian Security support --- pbuilder-apt-config | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'pbuilder-apt-config') diff --git a/pbuilder-apt-config b/pbuilder-apt-config index 74b5a55..bc21137 100755 --- a/pbuilder-apt-config +++ b/pbuilder-apt-config @@ -7,7 +7,6 @@ self="$(basename "$0")" # TODO # - support setting --mirror-map (for --profile) -# - Debian security entries? log() { echo "$@" >&2 @@ -90,6 +89,9 @@ get_archive_url() { ubuntu-ports) echo "http://ports.ubuntu.com/ubuntu-ports/" ;; + debian-security) + echo "http://security.debian.org/" + ;; debian-volatile) echo "http://volatile.debian.org/debian-volatile/" ;; @@ -298,9 +300,18 @@ if [ -n "$profile" ]; then add_output_sources "$with_sources" "$base_mirror" "$base_dist" "$components" add_output_sources "$with_sources" "$mirror" "$profile" "$components" ;; + */updates) + if [ "$base_dist" != "${profile%%/*}" ]; then + die "Unknown Debian Security based profile=$profile" + fi + archive="debian-security" + mirror="`get_archive_url "$archive"`" + add_output_sources "$with_sources" "$base_mirror" "$base_dist" "$components" + add_output_sources "$with_sources" "$mirror" "$profile" "$components" + ;; *-proposed-updates) if [ "$base_dist" != "${profile%%-*}" ]; then - die "Unknown Debian updates based profile=$profile" + die "Unknown Debian Updates based profile=$profile" fi add_output_sources "$with_sources" "$base_mirror" "$base_dist" "$components" add_output_sources "$with_sources" "$base_mirror" "$profile" "$components" -- cgit v1.2.3