Skip to content

Commit

Permalink
fix configs that do not use yum groupinstall
Browse files Browse the repository at this point in the history
  • Loading branch information
erikogan committed Nov 26, 2010
1 parent 2ae2ab7 commit b23694a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion rpm/release/mocksetup.sh
Expand Up @@ -7,22 +7,27 @@ repo=${1:-/var/lib/mock/passenger-build-repo}

set -e

# For the non-groupinstall configs, pull the members out of the mock-comps.xml
prereqs=`egrep 'packagereq.*default' $(dirname $0)/mock-comps.xml | cut -d\> -f2 | cut -d\< -f1 | tr '\n' ' '`

for cfg in /etc/mock/{fedora-{13,14},epel-5}-*.cfg
do
echo $cfg
dir=`dirname $cfg`
base=`basename $cfg`
new=$dir/passenger-$base
perl -p - $repo $cfg <<-'EOF' > $new
perl -p - $repo "$prereqs" $cfg <<-'EOF' > $new
# Warning <<- only kills TABS (ASCII 0x9) DO NOT CONVERT THESE
# TABS TO SPACES -- IT WILL BREAK
sub BEGIN {
our $repo = shift;
our $prereqs = shift;
}
s{opts\['root'\]\s*=\s*'}{${&}passenger-}; #';
s{groupinstall [^']+}{$& Ruby build-passenger}; #'
s{\binstall buildsys-build}{$& ruby ruby-devel $prereqs};
s{^"""}{<<EndRepo . $&}e; #"
[build-passenger]
Expand Down

0 comments on commit b23694a

Please sign in to comment.