summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2010-09-26 23:00:52 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:20:32 +0100
commitef3b9967b074fe68e91ea3ae1c98d0e62faf2265 (patch)
tree4ecb4a6f5e123a22e06bde049928fae8dce27d5a /scripts
parent2dbf0565e4734dd8a0d41a2ec1ae2e6d8f954ed3 (diff)
downloadvyos-live-build-ef3b9967b074fe68e91ea3ae1c98d0e62faf2265.tar.gz
vyos-live-build-ef3b9967b074fe68e91ea3ae1c98d0e62faf2265.zip
Avoid using bashism when handling codename/suite mapping for debian-installer release file.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build/lb_binary_debian-installer12
1 files changed, 11 insertions, 1 deletions
diff --git a/scripts/build/lb_binary_debian-installer b/scripts/build/lb_binary_debian-installer
index 5dfa52519..b61b1368c 100755
--- a/scripts/build/lb_binary_debian-installer
+++ b/scripts/build/lb_binary_debian-installer
@@ -589,11 +589,21 @@ then
eval _VERSION="$`echo RELEASE_${LB_DISTRIBUTION}`"
+ case "${LB_DISTRIBUTION}" in
+ sid)
+ _SUITE="unstable"
+ ;;
+
+ *)
+ _SUITE="${LB_DISTRIBUTION}"
+ ;;
+ esac
+
cat > chroot/binary.sh << EOF
cd /root/binary && apt-ftparchive \
-o APT::FTPArchive::Release::Origin="Debian" \
-o APT::FTPArchive::Release::Label="Debian" \
- -o APT::FTPArchive::Release::Suite="${LB_DISTRIBUTION/sid/unstable}" \
+ -o APT::FTPArchive::Release::Suite="${_SUITE}" \
-o APT::FTPArchive::Release::Version="${_VERSION}" \
-o APT::FTPArchive::Release::Codename="${LB_DISTRIBUTION}" \
-o APT::FTPArchive::Release::Date="$(date -R)" \