]> git.decadent.org.uk Git - dak.git/commitdiff
do the i18n export in a way that we dont need to change it with every release, let...
authorJoerg Jaspert <joerg@debian.org>
Sun, 4 Mar 2012 10:37:33 +0000 (11:37 +0100)
committerJoerg Jaspert <joerg@debian.org>
Sun, 4 Mar 2012 10:37:33 +0000 (11:37 +0100)
Signed-off-by: Joerg Jaspert <joerg@debian.org>
config/debian/dinstall.functions

index 2ace6eb4bc5f32760131ca51dca81366a18a968c..8a5ec24e32c8ed8b12b18973221fba3519d26f9b 100644 (file)
@@ -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