[PATCH] use the right baseurl in run_install_test.sh.

Samantha N. Bueno sbueno+anaconda at redhat.com
Thu Jul 16 14:00:59 UTC 2015


On Wed, Jul 15, 2015 at 01:21:44PM -0400, Chris Lumens wrote:
> We're now testing on a secondary architecture, and those don't use the same
> baseurl as primary ones.  Thus, a need to differentiate.

Ack.

> ---
>  tests/install/run_install_test.sh | 13 ++++++++++++-
>  1 file changed, 12 insertions(+), 1 deletion(-)
> 
> diff --git a/tests/install/run_install_test.sh b/tests/install/run_install_test.sh
> index 782ade6..ed9f286 100755
> --- a/tests/install/run_install_test.sh
> +++ b/tests/install/run_install_test.sh
> @@ -49,11 +49,22 @@ enabled=1
>  [anaconda-rawhide]
>  name=Fedora - Rawhide - Developmental packages for the next Fedora release
>  failovermethod=priority
> -baseurl=http://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/\$basearch/os/
>  enabled=1
>  gpgcheck=0
>  EOF
>  
> +# Primary and secondary arches do not use the same baseurl, so we have to figure it
> +# out here.
> +if [[ "$(uname -m)" == "x86_64" ]]; then
> +    cat <<EOF >> ${tmpdir}/yum.conf
> +baseurl=http://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/\$basearch/os/
> +EOF
> +else
> +    cat <<EOF >> ${tmpdir}/yum.conf
> +baseurl=http://mirrors.kernel.org/fedora-secondary/development/rawhide/\$basearch/os/
> +EOF
> +fi
> +
>  dnf install -y -c ${tmpdir}/yum.conf --installroot=${tmpdir} --releasever=rawhide \
>              --disablerepo=\* --enablerepo=anaconda --enablerepo=anaconda-rawhide \
>              anaconda
> -- 
> 2.4.3
> 
> _______________________________________________
> anaconda-patches mailing list
> anaconda-patches at lists.fedorahosted.org
> https://lists.fedorahosted.org/mailman/listinfo/anaconda-patches


More information about the anaconda-patches mailing list