From: Marc Fiuczynski Date: Tue, 28 Aug 2007 21:49:09 +0000 (+0000) Subject: fix so that it prints Core for Fedora release<7 and otherwise just drops Core for... X-Git-Tag: 4.2-rc2~593 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=62437645c1625cd9b638f7f311e1731ff2399cde;p=build.git fix so that it prints Core for Fedora release<7 and otherwise just drops Core for release>=7 --- diff --git a/mkfedora b/mkfedora index c379cc89..add5aa0a 100755 --- a/mkfedora +++ b/mkfedora @@ -1,6 +1,6 @@ #!/bin/bash # -# Builds a Fedora Core reference image. Requires the build server to +# Builds a Fedora reference image. Requires the build server to # host a local yum repository in one of: # # /usr/share/mirrors/fedora @@ -13,7 +13,7 @@ # Mark Huang # Copyright (C) 2004-2006 The Trustees of Princeton University # -# $Id: mkfedora,v 1.30 2007/08/24 05:00:14 mef Exp $ +# $Id: mkfedora,v 1.31 2007/08/24 05:01:39 mef Exp $ # export PATH=/sbin:/bin:/usr/sbin:/usr/bin @@ -267,6 +267,12 @@ rpm --root $vroot --import $baseurl/RPM-GPG-KEY-fedora # Initialize yum in reference image mkdir -p $vroot/var/cache/yum $vroot/var/log +if [ $releasever -lt 7 ] ; then + corename="Core " +else + corename="" +fi + cat >$vroot/etc/yum.conf <>$vroot/etc/yum.conf <