Commit 53ed9b40 authored by intrigeri's avatar intrigeri

Avoid confusing semantics (refs: #15107).

Let's pass an argument to `apt-snapshots-serials prepare-build' only when we
actually have something useful to pass it: passing the empty string around as an
argument is bound to create confusion later on.
parent 04150ceb
......@@ -103,8 +103,11 @@ $RUN_LB_CONFIG --distribution stretch ${@}
# set up everything for time-based snapshots:
if [ -n "${APT_SNAPSHOT_SERIAL:-}" ]; then
echo "Fixing 'latest' APT snapshots serial to: ${APT_SNAPSHOT_SERIAL}."
APT_SNAPSHOT_SERIALS_PB_ARGS="${APT_SNAPSHOT_SERIAL}"
else
APT_SNAPSHOT_SERIALS_PB_ARGS=
fi
apt-snapshots-serials prepare-build "${APT_SNAPSHOT_SERIAL:-}"
apt-snapshots-serials prepare-build $APT_SNAPSHOT_SERIALS_PB_ARGS
DEBIAN_MIRROR="$(apt-mirror debian)"
DEBIAN_SECURITY_MIRROR="$(apt-mirror debian-security)"
......
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