diff options
author | Loïc Minier <lool@dooz.org> | 2010-02-13 13:01:45 +0100 |
---|---|---|
committer | Loïc Minier <lool@dooz.org> | 2010-02-13 13:01:45 +0100 |
commit | 666882d08a5d2e846427f6a1765530911a95fbd2 (patch) | |
tree | 7cd6f5b2cbc448a1545b4fb74d356f69f2852bfe /pbuilder-apt-config | |
parent | 178a5f43432de53d20e1fb6a6bde50b4d6d1315a (diff) | |
download | pbuilder-666882d08a5d2e846427f6a1765530911a95fbd2.tar pbuilder-666882d08a5d2e846427f6a1765530911a95fbd2.tar.gz |
Add support for Ubuntu security host
Diffstat (limited to 'pbuilder-apt-config')
-rwxr-xr-x | pbuilder-apt-config | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/pbuilder-apt-config b/pbuilder-apt-config index 5e2b491..8953c82 100755 --- a/pbuilder-apt-config +++ b/pbuilder-apt-config @@ -151,6 +151,9 @@ builtin_mirror_map() { ubuntu-ports) echo "http://ports.ubuntu.com/ubuntu-ports/" ;; + ubuntu-security) + echo "http://security.ubuntu.com/ubuntu/" + ;; *) die "Unknown mirror for archive=$archive" ;; @@ -390,6 +393,8 @@ if [ -n "$profile" ]; then die "Unknown Ubuntu based profile=$profile" fi pockets="" + # whether to include the security mirror + has_security="yes" case "$profile" in *-security) pockets="security" @@ -407,12 +412,20 @@ if [ -n "$profile" ]; then if [ "$base_dist" != "$profile" ]; then die "Unknown Ubuntu pocket based profile=$profile" fi + has_security="no" ;; esac add_output_sources "$with_sources" "$base_mirror" "$base_dist" "$components" for pocket in $pockets; do add_output_sources "$with_sources" "$base_mirror" "$base_dist-$pocket" "$components" done + if [ "$has_security" = "yes" ]; then + archive="ubuntu-security" + mirror="`get_archive_url "$mirror_map" "$archive"`" + if [ "$mirror" != "$base_mirror" ]; then + add_output_sources "$with_sources" "$mirror" "$base_dist-security" "$components" + fi + fi ;; *) die "Unknown profile for base_archive=$base_archive" |