Commit 92391a51 authored by Vitaly Lipatov's avatar Vitaly Lipatov

introduce RPMTMPDIR and create link to it in RPM/tmp (in rpmbb script)

parent 3d746a59
......@@ -75,6 +75,7 @@ mygetopts $LISTARGS
mkdir -p "$LOGDIR"
mkdir -p "$RPMTOPDIR/RPMS"
test -L "$RPMTOPDIR/tmp" || ln -s $RPMTMPDIR $RPMTOPDIR/tmp
test -z "$LISTNAMES" && fatal "Please run with spec(s) name"
test -n "$LISTRPMARGS" && echog "Run $RPMBUILD with options: '$LISTRPMARGS'"
......
......@@ -333,6 +333,7 @@ cat $RPMDIR/uploaded.log.tmp | grep task | head -n2 | tail -n1 >> $RPMDIR/upload
for i in $LISTBUILT ; do
# FIXME: more general way
mkdir -p $LOGDIR
LOGFILE="$LOGDIR/`basename $i .src.rpm`$MENVARG.log"
echo >>$LOGFILE
date >>$LOGFILE
......
......@@ -29,6 +29,8 @@ RPMBUILD=rpmbuild
# CHECKME: works only on ALT?
RPMDIR=`rpm --eval %_topdir`
RPMTMPDIR=`rpm --eval %_tmppath`
# Can be overrided in the scripts
[ -n "$RPMTOPDIR" ] || RPMTOPDIR="$RPMDIR"
......
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