@@ -814,12 +814,8 @@ chmod 600 $subdir/etc/ssh/ssh_host_*_key ||:
END
}
-sub debian_mirror_url ($) {
- # I think ideally this should handle, and be used for, backports too.
- # It would need an optional suite suffix which could be "-backports"?
- my ($ho) = @_;
- my $suite = $ho->{Suite};
- my $arch = $ho->{Arch};
+sub debian_mirror_url_suite_arch ($$) {
+ my ($suite, $arch) = @_;
my $url =
$c{"DebianMirror_${suite}_${arch}"} //
$c{"DebianMirror_${suite}"} //
@@ -830,6 +826,13 @@ sub debian_mirror_url ($) {
return $url;
}
+sub debian_mirror_url ($) {
+ # I think ideally this should handle, and be used for, backports too.
+ # It would need an optional suite suffix which could be "-backports"?
+ my ($ho) = @_;
+ return debian_mirror_url_suite_arch($ho->{Suite}, $ho->{Arch});
+}
+
sub debian_mirror_host_path ($) {
my ($ho) = @_;
my $url = debian_mirror_url($ho);
mg-debian-installer-update is going to want this. NFC. Signed-off-by: Ian Jackson <iwj@xenproject.org> --- Osstest/Debian.pm | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-)