From 77ec982e538e9b7a4739853170931de9b01bdc59 Mon Sep 17 00:00:00 2001 From: Joerg Jaspert Date: Tue, 12 Aug 2008 16:12:34 +0200 Subject: [PATCH] * config/debian/cron.dinstall: Complicate the i18n export a little by using date/hour based directories which we then link into the web view. They contain a signed timestamp file now, which means the i18n people can take a long time to generate files, yet we still know exactly on which dataset their data is based on, and can then verify it with that. Ensures we only get descriptions for packages we know off (or knew of in the past 2 days). --- ChangeLog | 10 ++++++++++ config/debian/cron.dinstall | 13 +++++++++++-- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 65d35f05..af6f7560 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2008-08-12 Joerg Jaspert + + * config/debian/cron.dinstall: Complicate the i18n export a little + by using date/hour based directories which we then link into the + web view. They contain a signed timestamp file now, which means + the i18n people can take a long time to generate files, yet we + still know exactly on which dataset their data is based on, and + can then verify it with that. Ensures we only get descriptions for + packages we know off (or knew of in the past 2 days). + 2008-08-11 Joerg Jaspert * web/dinstall.html: Added diff --git a/config/debian/cron.dinstall b/config/debian/cron.dinstall index 4d388489..9ce27432 100755 --- a/config/debian/cron.dinstall +++ b/config/debian/cron.dinstall @@ -245,12 +245,21 @@ run-parts --report $base/scripts/distmnt ts echo "Exporting package data foo for i18n project" -cd ${webdir}/i18n +STAMP=$(date "+%Y%m%d%H%M") +mkdir -p ${scriptdir}/i18n/${STAMP} +cd ${scriptdir}/i18n/${STAMP} dak control-suite -l stable > etch dak control-suite -l testing > lenny dak control-suite -l unstable > sid -rm md5sum +echo "${STAMP}" > timestamp +gpg --secret-keyring /srv/ftp.debian.org/s3kr1t/dot-gnupg/secring.gpg --keyring /srv/ftp.debian.org/s3kr1t/dot-gnupg/pubring.gpg --no-options --batch --no-tty --armour --default-key 6070D3A1 --detach-sign -o timestamp.gpg timestamp +rm -f md5sum md5sum * > md5sum +cd ${webdir}/ +ln -sfT ${scriptdir}/i18n/${STAMP} i18n + +cd ${scriptdir} +find ./i18n -mtime +2 -mindepth 1 -maxdepth 1 -not -name "${STAMP}" -type d -print0 | xargs --no-run-if-empty -0 rm -rf ts -- 2.39.5