Commit 3483d38f authored by Loïc Minier's avatar Loïc Minier

Add Debian Security support

parent 804679d1
......@@ -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"
......
......@@ -83,6 +83,8 @@ expect_output "deb sid comp1" test_profile sid
expect_output "deb unstable comp1
deb experimental comp1" test_profile experimental
expect_output "deb squeeze comp1
deb squeeze/updates comp1" test_profile squeeze/updates
expect_output "deb squeeze comp1
deb squeeze-proposed-updates comp1" test_profile squeeze-proposed-updates
expect_output "deb squeeze comp1
deb squeeze-backports comp1" test_profile squeeze-backports
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment