]> xenbits.xensource.com Git - osstest.git/commitdiff
mg-debian-installer-update: Use Debian mirror selection
authorIan Jackson <iwj@xenproject.org>
Tue, 9 Feb 2021 12:28:01 +0000 (12:28 +0000)
committerIan Jackson <iwj@xenproject.org>
Tue, 9 Feb 2021 15:12:32 +0000 (15:12 +0000)
NFC with existing config.

Signed-off-by: Ian Jackson <iwj@xenproject.org>
mg-debian-installer-update

index 5e890d348f960be87a5a674fc9b301b88a88617e..4fb4bc218f52b7f427272ec25f1df2477da33e07 100755 (executable)
@@ -28,7 +28,13 @@ suite=$1
 arch=$2
 packages="$3"
 
-site=http://ftp.debian.org/debian/
+site=$(perl -we '
+    use Osstest;
+    use Osstest::Debian;
+    readglobalconfig();
+    print debian_mirror_url_suite_arch($ARGV[0], $ARGV[1]) or die $!;
+' "$suite" "$arch")
+
 sbase=$site/dists/$suite
 
 src=$sbase/main/installer-$arch/current/images/netboot/