If this is set, use it instead of the usual DebianMirrorHost and
Subpath. No functional change with configs that don't set it.
This is not sufficient to work right yet, because snapshots
repositories have out-of-date signatures...
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
my ($ho, $sfx, $xopts, $suite, @pkgs) = @_;
if (! $xopts->{BackportsSourcesAlreadyAdded}++) {
+ my $bp_url = $c{"DebianSnapshotBackports_$suite"};
+ $bp_url ||= "http://$c{DebianMirrorHost}/$c{DebianMirrorSubpath}";
+
preseed_hook_command($ho, 'late_command', $sfx, <<END);
#!/bin/sh
set -ex
cat <<EOF >>/target/etc/apt/sources.list
# $suite backports
-deb http://$c{DebianMirrorHost}/$c{DebianMirrorSubpath} $suite-backports main
+deb $bp_url $suite-backports main
EOF
in-target apt-get update
END