]> git.decadent.org.uk Git - dak.git/commitdiff
Only have an underscore in stagefile if args is non-empty
authorJoerg Jaspert <joerg@debian.org>
Thu, 31 Dec 2015 21:23:56 +0000 (22:23 +0100)
committerJoerg Jaspert <joerg@debian.org>
Thu, 31 Dec 2015 21:23:56 +0000 (22:23 +0100)
config/debian/common

index b8a6e6cca5fc2c3c80544499baf210a59e51b9fc..bc3248c7470dd6cad1b5f8f44398d5bfcffccc6d 100644 (file)
@@ -288,7 +288,7 @@ function stage() {
     ARGS=${ARGS:-""}
 
     log "########## ${PROGRAM} BEGIN: ${FUNC} ${ARGS} ##########"
-    local STAGEFILE="${stagedir}/${FUNC}_${ARGS}"
+    local STAGEFILE="${stagedir}/${FUNC}${ARGS:+_}${ARGS}"
     STAGEFILE=${STAGEFILE// /_}
     if [ -f "${STAGEFILE}" ]; then
         local stamptime=$(/usr/bin/stat -c %Z "${STAGEFILE}")