From 71b20cd9e1916aeaffd4cdf0d241e71ee7975094 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Mon, 04 Jan 2021 18:22:48 -0500 Subject: cmd/build: Filter session directory in log As in sbuild (>= 0.62.0-1, Debian bug #605763), filtering makes build logs comparable with diff. --- (limited to 'src/cmd') diff --git a/src/cmd/build.sh b/src/cmd/build.sh index e254abe..6d72046 100644 --- a/src/cmd/build.sh +++ b/src/cmd/build.sh @@ -128,6 +128,8 @@ _cmd_build_build() Host-Platform: ${host_plat} Distribution: ${dist} Build-Date: ${build_date} + + Filter: Replacing "$(session_dir)" with "<>" EOF es=0 @@ -293,7 +295,8 @@ cmd_build_main() "${host_arch}" "${host_plat}" \ "${dist}" "${@}" 2>&1 printf '%d' ${?} 1>&3 - } | tee "${log}" 1>&2 + } | sed "/^Filter: /!s|$(session_dir)|<>|" \ + | tee "${log}" 1>&2 } 3>&1 | { read es exit ${es} -- cgit v0.9.1