From 6fd9b06fb2920303423999ed1364b56a48a94fce Mon Sep 17 00:00:00 2001
From: Daniel Baumann <daniel@debian.org>
Date: Sun, 26 Sep 2010 23:19:10 +0200
Subject: Also correcting version number in debian-installer release file.

---
 scripts/build/lb_binary_debian-installer | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/scripts/build/lb_binary_debian-installer b/scripts/build/lb_binary_debian-installer
index b097f94..d59050b 100755
--- a/scripts/build/lb_binary_debian-installer
+++ b/scripts/build/lb_binary_debian-installer
@@ -596,12 +596,14 @@ then
 	# Generating release file
 	mv binary chroot/root
 
+	eval _VERSION="$`echo RELEASE_${LB_DISTRIBUTION}`"
+
 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::Version="4.0" \
+	-o APT::FTPArchive::Release::Version="${_VERSION}" \
 	-o APT::FTPArchive::Release::Codename="${LB_DISTRIBUTION}" \
 	-o APT::FTPArchive::Release::Date="$(date -R)" \
 	-o APT::FTPArchive::Release::Architectures="${LB_ARCHITECTURE}" \
-- 
cgit v1.0