X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=build.functions;h=a96e295ef66e50612eff65e37cc752acb0c81206;hb=refs%2Fheads%2F4.2;hp=cef3f498e7377d5fe3de629f1622544568002614;hpb=d354cce3496410b1e7e45959b09b5ae630ef873c;p=myplc.git diff --git a/build.functions b/build.functions index cef3f49..a96e295 100644 --- a/build.functions +++ b/build.functions @@ -6,7 +6,7 @@ # Mark Huang # Copyright (C) 2006 The Trustees of Princeton University # -# $Id: build.functions,v 1.10.2.1 2007/08/30 16:39:07 mef Exp $ +# $Id$ # PATH=/sbin:/bin:/usr/sbin:/usr/bin @@ -46,39 +46,37 @@ set -e # Be verbose set -x -# Make a basic chroot at the specified location given the specified -# configuration. -make_chroot() { - root=$1 - config=$2 +# this is fragile, as the actual layout may vary from one mirror to the other +# however this should be in line with the layouts obtained +# when running build/vbuild-fedora-mirror.sh - # Get group list - groups= - while read group ; do - groups="$groups -g \"$group\"" - done < <(./plc-config --groups $config) +function yum_conf_to_build_host () { + build_dir=$1; shift + BUILD_HOST=$(hostname) - # Get package list - packages= - while read package ; do - packages="$packages -p \"$package\"" - done < <(./plc-config --packages $config) + cat <