summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-08-06 10:12:01 +0200
committerErich Eckner <git@eckner.net>2019-08-06 10:12:01 +0200
commitc16825172d6c970deb565c0c885b66995381ddc4 (patch)
tree5d17de98e87ef0df06867f0a2076c05b007127c7 /bin
parent6e4da7ba406c99a2ada801fcf6f1cf2ff71478a9 (diff)
downloadbuilder-c16825172d6c970deb565c0c885b66995381ddc4.tar.xz
bin/nit-picker: show build date of wrong package
Diffstat (limited to 'bin')
-rwxr-xr-xbin/nit-picker14
1 files changed, 13 insertions, 1 deletions
diff --git a/bin/nit-picker b/bin/nit-picker
index f7c59f5..1dea301 100755
--- a/bin/nit-picker
+++ b/bin/nit-picker
@@ -203,8 +203,20 @@ while pgrep -x ii >/dev/null \
| sort -u \
> "${tmp_dir}/db-deps"
if ! diff -q "${tmp_dir}/db-deps" "${tmp_dir}/pkg-deps"; then
- printf 'dependencies of %s differ between the package and our database\n' \
+ build_date=$(
+ bsdtar -Oxf "${tmp_dir}/${parameters}" '.PKGINFO' \
+ | sed '
+ s/^builddate = //
+ t
+ d
+ '
+ )
+ build_date=$(
+ date -I -d@"${build_date}"
+ )
+ printf 'dependencies of %s (built on %s) differ between the package and our database\n' \
"${parameters}" \
+ "${build_date}" \
| irc_say 'deep42thought'
if ! ${irc}; then
diff -u --color "${tmp_dir}/db-deps" "${tmp_dir}/pkg-deps" || true