aboutsummaryrefslogtreecommitdiffstats
path: root/modules/buildsystem/templates
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2011-08-23 14:32:12 +0000
committerMichael Scherer <misc@mageia.org>2011-08-23 14:32:12 +0000
commit65234ca11d057fda4b1191dc3addd288b693a151 (patch)
treee043c4ff903ae3409db2080867c0b9e7f97600f2 /modules/buildsystem/templates
parent09c11b1c58ddc5b3191a8407b9db36273da3a52e (diff)
downloadpuppet-65234ca11d057fda4b1191dc3addd288b693a151.tar
puppet-65234ca11d057fda4b1191dc3addd288b693a151.tar.gz
puppet-65234ca11d057fda4b1191dc3addd288b693a151.tar.bz2
puppet-65234ca11d057fda4b1191dc3addd288b693a151.tar.xz
puppet-65234ca11d057fda4b1191dc3addd288b693a151.zip
make the script aware of 32 bits system and recompilation ( with linux32 )
Diffstat (limited to 'modules/buildsystem/templates')
-rwxr-xr-xmodules/buildsystem/templates/iurt2010.13
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/buildsystem/templates/iurt2010.1 b/modules/buildsystem/templates/iurt2010.1
index 2c822b40..bcb70faa 100755
--- a/modules/buildsystem/templates/iurt2010.1
+++ b/modules/buildsystem/templates/iurt2010.1
@@ -4,4 +4,5 @@ then
echo 'this script should be run as <%= build_login %>' >&2
exit 1
fi
-iurt --chrooted-urpmi -m contrib/release main/release ../../../2010.1-mgaserv/x86_64 -- http://repository.mageia.org/mandriva/ -r mandriva2010.1 x86_64 $@
+ARCH=$(rpm --eval %_target_cpu)
+iurt --chrooted-urpmi -m contrib/release main/release ../../../2010.1-mgaserv/$ARCH -- http://repository.mageia.org/mandriva/ -r mandriva2010.1 $ARCH $@