magic-proxy: dump proxy log to stdout on failure (LP: #1847300)

When we encounter a failure in 'lb binary' the launchpad builders can
only surface the build output from stdout.  If the binary hook failure
implicates the archive we can not determine fault without the apt
proxy log.  This patch will dump the proxy log to stdout to aid in
debugging these failures.
sil2100/backport-datasource-raspi3
Robert C Jennings 5 years ago
parent 06af3d7242
commit dda6e5953a
No known key found for this signature in database
GPG Key ID: 740C3D9EEDF2ED73

6
debian/changelog vendored

@ -1,3 +1,9 @@
livecd-rootfs (2.525.30ubuntu1) UNRELEASED; urgency=medium
* magic-proxy: dump proxy log to stdout on failure (LP: #1847300)
-- Robert C Jennings <robert.jennings@canonical.com> Tue, 08 Oct 2019 11:00:07 -0500
livecd-rootfs (2.525.30) bionic; urgency=medium
[ Robert C Jennings ]

@ -489,6 +489,12 @@ EOF
if [ -e binary.success ]; then
rm -f binary.success
else
# Dump the magic-proxy log to stdout on failure to aid debugging
if [ -f /build/livecd.magic-proxy.log ] ; then
echo "================= Magic proxy log (start) ================="
cat /build/livecd.magic-proxy.log
echo "================== Magic proxy log (end) =================="
fi
exit 1
fi

Loading…
Cancel
Save