From c16825172d6c970deb565c0c885b66995381ddc4 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 6 Aug 2019 10:12:01 +0200 Subject: bin/nit-picker: show build date of wrong package --- bin/nit-picker | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'bin') 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 -- cgit v1.2.3-70-g09d2