diff options
author | Loïc Minier <lool@dooz.org> | 2010-01-30 11:38:50 +0100 |
---|---|---|
committer | Loïc Minier <lool@dooz.org> | 2010-01-30 11:38:50 +0100 |
commit | 3483d38fb43761ac8ead2c5a5caa1770249fe035 (patch) | |
tree | 15e4d918701f6fd12f971594e8ddd2ee113c9697 /pbuilder-apt-config | |
parent | 804679d1eda4ee1a8f95e70687435f3750fc7190 (diff) | |
download | pbuilder-3483d38fb43761ac8ead2c5a5caa1770249fe035.tar pbuilder-3483d38fb43761ac8ead2c5a5caa1770249fe035.tar.gz |
Add Debian Security support
Diffstat (limited to 'pbuilder-apt-config')
-rwxr-xr-x | pbuilder-apt-config | 15 |
1 files changed, 13 insertions, 2 deletions
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" |