]> git.decadent.org.uk Git - dak.git/blobdiff - config/debian/dinstall.functions
add a statefile. this closes #560277
[dak.git] / config / debian / dinstall.functions
index 26c1c8b8bd33c5a0fc30480468c82991cefbcd12..19d62ed09afa15883c8c376978fa0f1818853480 100644 (file)
@@ -545,3 +545,18 @@ function process_unchecked() {
     do_unchecked
     sync_debbugs
 }
+
+# Function to update a "statefile" telling people what we are doing
+# (more or less).
+#
+# This should be called with the argument(s)
+#  - Status name we want to show.
+#
+function state() {
+    RIGHTNOW="$(date -u +"%a %b %d %T %Z %Y (%s)")"
+    cat >"${DINSTALLSTATE}" <<EOF
+Dinstall start: ${DINSTALLBEGIN}
+Current action: ${1}
+Action start: ${RIGHTNOW}
+EOF
+}