From 62437645c1625cd9b638f7f311e1731ff2399cde Mon Sep 17 00:00:00 2001 From: Marc Fiuczynski Date: Tue, 28 Aug 2007 21:49:09 +0000 Subject: [PATCH] fix so that it prints Core for Fedora release<7 and otherwise just drops Core for release>=7 --- mkfedora | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) 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 <