[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[OSSTEST PATCH 4/7] mg-debian-installer-update: Use Debian mirror selection



NFC with existing config.

Signed-off-by: Ian Jackson <iwj@xxxxxxxxxxxxxx>
---
 mg-debian-installer-update | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/mg-debian-installer-update b/mg-debian-installer-update
index 5e890d34..4fb4bc21 100755
--- a/mg-debian-installer-update
+++ b/mg-debian-installer-update
@@ -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/
-- 
2.20.1




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.