From 432f79fa29fa6e5dec7ce450593a0fcab9414bb5 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 1 Dec 2012 23:33:14 +0100 Subject: [PATCH] autoport: use $DATADIR instead of /var/autoport to also work in user mode --- autoport | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/autoport b/autoport index cbe3442..ac1bb4f 100755 --- a/autoport +++ b/autoport @@ -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