From 438caaddbc1b10b52a19731ca01249cb6683bfc1 Mon Sep 17 00:00:00 2001 From: Joerg Jaspert Date: Sun, 4 Mar 2012 11:37:33 +0100 Subject: [PATCH] do the i18n export in a way that we dont need to change it with every release, let it fetch from db Signed-off-by: Joerg Jaspert --- config/debian/dinstall.functions | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/config/debian/dinstall.functions b/config/debian/dinstall.functions index 2ace6eb4..8a5ec24e 100644 --- a/config/debian/dinstall.functions +++ b/config/debian/dinstall.functions @@ -402,7 +402,7 @@ function mirrorpush() { # match. continue fi - broken=$(( broken + 1 )) + broken=$(( broken + 1 )) echo "File ${subdir}/${NAME} is missing" continue fi @@ -444,9 +444,12 @@ function i18n2() { STAMP=$(date "+%Y%m%d%H%M") mkdir -p ${scriptdir}/i18n/${STAMP} cd ${scriptdir}/i18n/${STAMP} - dak control-suite -l stable > squeeze - dak control-suite -l testing > wheezy - dak control-suite -l unstable > sid + for suite in stable testing unstable; do + codename=$(dak admin s show ${suite}|grep '^Codename') + codename=${codename##* } + echo "Codename is ${codename}" + dak control-suite -l ${suite} >${codename} + done echo "${STAMP}" > timestamp gpg --secret-keyring /srv/ftp-master.debian.org/s3kr1t/dot-gnupg/secring.gpg --keyring /srv/ftp-master.debian.org/s3kr1t/dot-gnupg/pubring.gpg --no-options --batch --no-tty --armour --default-key 55BE302B --detach-sign -o timestamp.gpg timestamp rm -f md5sum -- 2.39.5