Commit 3723c810 authored by Vitaly Lipatov's avatar Vitaly Lipatov

rpm: add uni_buildreq, uni_rpminstall

parent bd788d99
......@@ -58,6 +58,39 @@ uni_rpmbuild()
return $RET
}
uni_buildreq()
{
local RET=0
local SPECNAME=$1
local SPECDIR=`dirname $SPECNAME`
local GEARBUILDREQ=gear-buildreq
if is_gear $SPECDIR ; then
$NICE $GEARBUILDREQ --commit -- $@ || RET=$?
else
$NICE buildreq $@ || RET=$?
fi
return $RET
}
uni_rpminstall()
{
local RET=0
local TWOPARAM="-v"
if [ -n "$RPMTOPDIR" ] ; then
TWOPARAM="--define=_topdir $RPMTOPDIR"
fi
#if is_gear $SPECDIR ; then
# $NICE $GEARBUILDREQ --commit -- $@ || RET=$?
#else
rpm -iv "$TWOPARAM" $@ || RET=$?
#fi
return $RET
}
# get correct BUILDROOT, run build_rpms_name before!
build_buildroot()
{
......
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