]> xenbits.xensource.com Git - people/aperard/osstest.git/commitdiff
redhat_repo_url
authorAnthony PERARD <anthony.perard@citrix.com>
Tue, 12 Jun 2018 16:35:55 +0000 (17:35 +0100)
committerAnthony PERARD <anthony.perard@citrix.com>
Thu, 12 Jul 2018 15:49:19 +0000 (16:49 +0100)
Osstest/RedHat.pm

index e0c19c76c5d3a8b9c3f732e614aa6600226abcff..2e560874a1e9c6d3f81d4f9046a276dc99007777 100644 (file)
@@ -57,6 +57,16 @@ END
     return $kickstart;
 }
 
+sub redhat_repo_url ($$) {
+    my ($ho, $repo) = @_;
+    # This arch list has only be checked with CentOS
+    my %redhat_arch = qw(amd64 x86_64);
+
+    die "Unknown CentOS arch for $r{arch}" unless $redhat_arch{ $r{arch} };
+    my $arch = $redhat_arch{ $r{arch} };
+    return "$c{RedhatMirrorBase}/$ho->{RedhatRelease}/$repo/$arch/";
+}
+
 sub kickstart_base ($) {
     my ($ho) = @_;