Commit a55fa077 authored by Simon McVittie's avatar Simon McVittie
Browse files

debos-*.yaml: Check for errors in composite commands


Signed-off-by: Simon McVittie's avatarSimon McVittie <smcv@collabora.com>
parent 832601e9
......@@ -20,6 +20,7 @@ actions:
- action: run
label: create skeleton chroot
command: |
set -e
echo
install -d "$ROOTDIR"
install -d "$ROOTDIR/run"
......@@ -60,6 +61,7 @@ actions:
label: remove extra apt sources
chroot: false
command: |
set -e
echo
rm -fr "$ROOTDIR/etc/apt/sources.list.d"
mkdir "$ROOTDIR/etc/apt/sources.list.d"
......@@ -115,6 +117,7 @@ actions:
label: write-manifest
chroot: false
command: |
set -e
echo
"$RECIPEDIR/write-manifest" "$ROOTDIR"
cp "$ROOTDIR/usr/manifest.dpkg" "$ARTIFACTDIR/{{ $artifact_prefix }}.manifest.dpkg"
......@@ -152,6 +155,7 @@ actions:
label: manifests
chroot: false
command: >
set -e;
cd "$ROOTDIR";
head -n10000
usr/manifest.dpkg
......@@ -161,6 +165,7 @@ actions:
label: metadata
chroot: false
command: >
set -e;
cd "$ROOTDIR";
head -n10000
etc/apt/apt.conf
......
......@@ -111,6 +111,7 @@ actions:
label: write-manifest
chroot: false
command: |
set -e
echo
"$RECIPEDIR/write-manifest" "$ROOTDIR"
cp "$ROOTDIR/usr/manifest.dpkg" "$ARTIFACTDIR/{{ $artifact_prefix }}.manifest.dpkg"
......@@ -176,6 +177,7 @@ actions:
label: save final sources.list
chroot: false
command: |
set -e
echo
cp "$ROOTDIR/etc/apt/sources.list" "$ARTIFACTDIR/{{ $artifact_prefix }}.sources.list"
......@@ -183,6 +185,7 @@ actions:
label: try-apt-get-update
chroot: true
command: |
set -e
apt-get update || true
- action: run
......@@ -213,6 +216,7 @@ actions:
label: pack sysroot tarball
chroot: false
command: >
set -e;
echo;
tar -zcf "$ARTIFACTDIR/{{ $sysroot_tarball }}"
--numeric-owner
......@@ -254,6 +258,7 @@ actions:
label: pack ostree tarball
chroot: false
command: >
set -e;
echo;
tar -zcf "$ARTIFACTDIR/{{ $ostree_tarball }}"
--numeric-owner
......@@ -266,6 +271,7 @@ actions:
label: pack source code
chroot: false
command: >
set -e;
echo;
tar -zcf "$ARTIFACTDIR/{{ $sources_tarball }}"
--numeric-owner
......@@ -278,6 +284,7 @@ actions:
label: pack debug symbols
chroot: false
command: >
set -e;
echo;
tar -zcf "$ARTIFACTDIR/{{ $debug_tarball }}"
--numeric-owner
......@@ -297,6 +304,7 @@ actions:
label: list of missing source code
chroot: false
command: >
set -e;
test ! -e "$ROOTDIR/src/files/MISSING.txt" ||
cp -v "$ROOTDIR/src/files/MISSING.txt"
"$ARTIFACTDIR/{{ $sources_prefix }}.MISSING.txt"
......@@ -306,6 +314,7 @@ actions:
label: manifests
chroot: false
command: >
set -e;
cd "$ROOTDIR";
head -n10000
files/manifest.dpkg
......@@ -317,6 +326,7 @@ actions:
label: metadata
chroot: false
command: >
set -e;
cd "$ROOTDIR";
head -n10000
files/etc/apt/apt.conf
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment