From: Joerg Jaspert Date: Sat, 3 Mar 2012 21:30:43 +0000 (+0100) Subject: make args a part of stagefile X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=7c1224c91c89cf9aabfc0f4bfc1c1405515e8214;p=dak.git make args a part of stagefile Signed-off-by: Joerg Jaspert --- diff --git a/config/debian/cron.dinstall b/config/debian/cron.dinstall index 569dcd76..d2443f79 100755 --- a/config/debian/cron.dinstall +++ b/config/debian/cron.dinstall @@ -1,7 +1,7 @@ #!/bin/bash # No way I try to deal with a crippled sh just for POSIX foo. -# Copyright (C) 2009 Joerg Jaspert +# Copyright (C) 2009-2012 Joerg Jaspert # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as @@ -72,7 +72,9 @@ function stage() { error=${ERR:-"true"} - STAGEFILE="${stagedir}/${FUNC}" + ARGS=${ARGS:-""} + STAGEFILE="${stagedir}/${FUNC}_${ARGS}" + STAGEFILE=${STAGEFILE// /_} if [ -f "${STAGEFILE}" ]; then stamptime=$(/usr/bin/stat -c %Z "${STAGEFILE}") unixtime=$(date +%s)