From: Joerg Jaspert Date: Thu, 24 Dec 2015 22:13:56 +0000 (+0100) Subject: Guard against non-existing tracefiles (eg. new archive) X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=d27f726c8fdaa37026a059af0c1158ffc547f9f3;p=dak.git Guard against non-existing tracefiles (eg. new archive) --- diff --git a/config/debian/dinstall.functions b/config/debian/dinstall.functions index b8a4b0eb..a0c362c1 100644 --- a/config/debian/dinstall.functions +++ b/config/debian/dinstall.functions @@ -443,7 +443,7 @@ function mirror() { log "Regenerating \"public\" mirror/${archive} hardlink fun" DATE_SERIAL=$(date +"%Y%m%d01") - FILESOAPLUS1=$(awk '/serial/ { print $3+1 }' ${TRACEFILE} ) + FILESOAPLUS1=$(awk '/serial/ { print $3+1 }' ${TRACEFILE} || echo ${DATE_SERIAL} ) if [ "$DATE_SERIAL" -gt "$FILESOAPLUS1" ]; then SERIAL="$DATE_SERIAL" else