Commit a276a0f0 authored by Vitaly Lipatov's avatar Vitaly Lipatov

detect package arch from spec

parent dc79733c
......@@ -70,7 +70,7 @@ build_buildroot()
build_rpms_name()
{
local tmprpm CATSPEC NAMESPEC
local tmprpm CATSPEC NAMESPEC PKGARCH
#TODO change : to = and execute?
NAMESPEC=$1
shift
......@@ -89,7 +89,11 @@ build_rpms_name()
TARBALLNAME=$($CATSPEC | get_var "Source.*")
[ -n "$TARBALLNAME" ] && TARBALLNAME=$(basename $TARBALLNAME)
rm -f $tmprpm
NAMERPMIN=$BASENAME-$VERSION-$RELEASE.$DEFAULTARCH.rpm
PKGARCH=$($CATSPEC | get_var "BuildArch")
if [ "$PKGARCH" != "noarch" ] ; then
PKGARCH=$DEFAULTARCH
fi
NAMERPMIN=$BASENAME-$VERSION-$RELEASE.$PKGARCH.rpm
NAMESRPMIN=$BASENAME-$VERSION-$RELEASE.src.rpm
#RPMSOURCEDIR=$RPMDIR/SOURCES
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment