diff options
author | Daniel Baumann <daniel@debian.org> | 2010-09-26 23:19:25 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 19:17:24 +0100 |
commit | c4a0b64df35fdcb56a5c80a43ba4235e6ba35500 (patch) | |
tree | a4161bb03be9bde46ca46aedc0a37c768c3aa910 /scripts/build/lb_binary_debian-installer | |
parent | 6fd9b06fb2920303423999ed1364b56a48a94fce (diff) | |
download | vyos-live-build-c4a0b64df35fdcb56a5c80a43ba4235e6ba35500.tar.gz vyos-live-build-c4a0b64df35fdcb56a5c80a43ba4235e6ba35500.zip |
Avoid using bashism when handling codename/suite mapping for debian-installer release file.
Diffstat (limited to 'scripts/build/lb_binary_debian-installer')
-rwxr-xr-x | scripts/build/lb_binary_debian-installer | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/scripts/build/lb_binary_debian-installer b/scripts/build/lb_binary_debian-installer index d59050b78..1911c6e0b 100755 --- a/scripts/build/lb_binary_debian-installer +++ b/scripts/build/lb_binary_debian-installer @@ -598,11 +598,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)" \ |