Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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