From: Marc Fiuczynski Date: Fri, 24 Aug 2007 05:00:14 +0000 (+0000) Subject: As of release version 7, Fedora dropped 'core' X-Git-Tag: 4.2-rc2~595 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=2d2e93951a6bafc28dfcbf6a4845e783a365ce04;p=build.git As of release version 7, Fedora dropped 'core' --- diff --git a/mkfedora b/mkfedora index 13808e6f..c4bfd8b2 100755 --- a/mkfedora +++ b/mkfedora @@ -13,7 +13,7 @@ # Mark Huang # Copyright (C) 2004-2006 The Trustees of Princeton University # -# $Id: mkfedora,v 1.28 2007/08/21 03:47:21 mef Exp $ +# $Id: mkfedora,v 1.29 2007/08/24 04:47:00 mef Exp $ # export PATH=/sbin:/bin:/usr/sbin:/usr/bin @@ -133,16 +133,25 @@ fetch () } for mirror in "${mirrors[@]}" ; do - for baseurl in \ - $mirror/linux/core/$releasever/$basearch/os \ - $mirror/linux/$releasever/$basearch/os \ - $mirror/core/$releasever/$basearch/os \ - $mirror/$releasever/$basearch/os ; do - if fetch $baseurl/repodata/repomd.xml >/dev/null ; then - break - fi - unset baseurl - done + if [ $releasever -ge 7 ] ; then + for baseurl in \ + $mirror/$releasever/Everything/$basearch/os ; do + if fetch $baseurl/repodata/repomd.xml >/dev/null ; then + break + fi + unset baseurl + done + else + for baseurl in \ + $mirror/linux/core/$releasever/$basearch/os \ + $mirror/core/$releasever/$basearch/os \ + $mirror/$releasever/$basearch/os ; do + if fetch $baseurl/repodata/repomd.xml >/dev/null ; then + break + fi + unset baseurl + done + fi if [ -n "$baseurl" ] ; then break fi @@ -150,15 +159,23 @@ for mirror in "${mirrors[@]}" ; do done if [ -z "$baseurl" ] ; then - echo "Error: $releasever/$basearch/os/repodata/repomd.xml" - echo " could not be found in any of the following locations:" - echo - for mirror in ${mirrors[@]} ; do - echo $mirror/linux/core - echo $mirror/linux - echo $mirror/core - echo $mirror - done + if [ $releasever -ge 7 ] ; then + echo "Error: $releasever/Everything/$basearch/os/repodata/repomd.xml" + echo " could not be found in any of the following locations:" + echo + for mirror in ${mirrors[@]} ; do + echo $mirror/linux + done + else + echo "Error: $releasever/$basearch/os/repodata/repomd.xml" + echo " could not be found in any of the following locations:" + echo + for mirror in ${mirrors[@]} ; do + echo $mirror/linux/core + echo $mirror/core + echo $mirror + done + fi echo usage fi