Pick up on make errors from debian/rules
[buildd-scripts.git] / bin / get_package
index 3444f56..29a4fc6 100755 (executable)
@@ -3,6 +3,7 @@
 CLIENT=$1
 LOGDIR=/home/build/logs
 LOGFILE=/var/log/builder.log
+STATEDIR=/home/build/state
 
 cd in
 
@@ -31,6 +32,7 @@ while true; do
 
     # else
     echo "$DATE: Queued package $NUM: $PKG_VER_ARCH on $CLIENT" >> $LOGFILE
+    echo "$DATE: Queued package $NUM: $PKG_VER_ARCH on $CLIENT" >> $STATEDIR/$NUM.running
     echo "$NUM $PKG_VER_ARCH"
     exit 0
 done