autoport: use $DATADIR instead of /var/autoport to also work in user mode

This commit is contained in:
Silvan Calarco 2012-12-01 23:33:14 +01:00
parent 4b8773011b
commit 432f79fa29

View File

@ -51,7 +51,7 @@ function autoport_log() {
local logfile=$4
[ "$pkg" -a "$operation" -a "$result" -a "$BATCH_MODE" ] || return
echo "$pkg $operation $result $logfile" >> /var/autodist/log/autoport-$PORT_REPOSITORY-current
echo "$pkg $operation $result $logfile" >> $DATADIR/autoport-$PORT_REPOSITORY-current
}
# for webbuild message
@ -358,8 +358,8 @@ for TARGET_ARCH in ${TARGET_ARCHS}; do
fi
fi
done
[ -e /var/autodist/log/autoport-$PORT_REPOSITORY-current ] && \
mv /var/autodist/log/autoport-$PORT_REPOSITORY-current /var/autodist/log/autoport-$PORT_REPOSITORY-last
[ -e $DATADIR/autoport-$PORT_REPOSITORY-current ] && \
mv $DATADIR/autoport-$PORT_REPOSITORY-current $DATADIR/autoport-$PORT_REPOSITORY-last
fi
step=0