Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/why-dont-you
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-11-01 20:45:45 +0100
committerErich Eckner <git@eckner.net>2017-11-01 20:45:45 +0100
commit1d42012bf022f494cc72a570c6604de1db712854 (patch)
treeda54f47345589a5c1f0a68c0fa2b11f4a4384e39 /bin/why-dont-you
parent9bfd32c38b6f46140263553cf33c12d3b5fe03ef (diff)
bin/why-dont-you: output information of duration of stay
Diffstat (limited to 'bin/why-dont-you')
-rwxr-xr-xbin/why-dont-you4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/why-dont-you b/bin/why-dont-you
index d1d528a..9656dfd 100755
--- a/bin/why-dont-you
+++ b/bin/why-dont-you
@@ -144,9 +144,9 @@ case "${action}" in
while read -r sf; do
printf '%s' "${sf}"
if [ -f "${work_dir}/package-states/${sf}.testing" ]; then
- printf ' (not tested yet)'
+ printf ' (not tested yet for %s days)' "$(( ($(date '+%s') - $(stat -c '%Y' "${work_dir}/package-states/${sf}.testing")) / 3600 / 24 ))"
elif [ -f "${work_dir}/package-states/${sf}.done" ]; then
- printf ' (not unstaged yet)'
+ printf ' (not unstaged yet for %s days)' "$(( ($(date '+%s') - $(stat -c '%Y' "${work_dir}/package-states/${sf}.done")) / 3600 / 24 ))"
elif tr ' ' '.' < \
"${work_dir}/build-list" | \
grep -qxF "${sf}"; then