summaryrefslogtreecommitdiffstats
path: root/tests/debootstrap
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-26 16:03:01 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-26 16:03:01 +0000
commit1a6a1260e37f70fac654855687c12003a40264d0 (patch)
treefeec076722fa3a9fe7f6f95c3d0ec0fb7c9fe4a9 /tests/debootstrap
parentAdding upstream version 1.5.1. (diff)
downloadmmdebstrap-1a6a1260e37f70fac654855687c12003a40264d0.tar.xz
mmdebstrap-1a6a1260e37f70fac654855687c12003a40264d0.zip
Adding upstream version 1.5.2.upstream/1.5.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/debootstrap')
-rw-r--r--tests/debootstrap8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/debootstrap b/tests/debootstrap
index 63c217d..9e1709e 100644
--- a/tests/debootstrap
+++ b/tests/debootstrap
@@ -5,6 +5,12 @@ export SOURCE_DATE_EPOCH={{ SOURCE_DATE_EPOCH }}
tmpdir="$(mktemp -d)"
chmod 755 "$tmpdir"
-debootstrap "$([ "{{ DIST }}" = oldstable ] && echo --no-merged-usr || echo --merged-usr)" --variant={{ VARIANT }} {{ DIST }} "$tmpdir" {{ MIRROR }}
+ret=0
+debootstrap "$([ "{{ DIST }}" = oldstable ] && echo --no-merged-usr || echo --merged-usr)" --variant={{ VARIANT }} {{ DIST }} "$tmpdir" {{ MIRROR }} || ret=$?
+if [ "$ret" -ne 0 ]; then
+ echo "E: debootstrap failed, dumping $tmpdir/debootstrap/debootstrap.log"
+ cat "$tmpdir/debootstrap/debootstrap.log"
+ exit 1
+fi
tar --sort=name --mtime=@$SOURCE_DATE_EPOCH --clamp-mtime --numeric-owner --one-file-system --xattrs -C "$tmpdir" -c . > "./cache/debian-{{ DIST }}-{{ VARIANT }}.tar"
rm -r "$tmpdir"