[dak/master] export changelogs on security
Signed-off-by: Joerg Jaspert <joerg@debian.org>
---
config/debian-security/dak.conf | 6 ++++++
config/debian-security/export.sh | 27 +++++++++++++++++++++++++++
2 files changed, 33 insertions(+), 0 deletions(-)
create mode 100755 config/debian-security/export.sh
diff --git a/config/debian-security/dak.conf b/config/debian-security/dak.conf
index 32dc6aa..fdfd212 100644
--- a/config/debian-security/dak.conf
+++ b/config/debian-security/dak.conf
@@ -226,6 +226,7 @@ Dir
{
Root "/srv/security-master.debian.org/ftp/";
Pool "/srv/security-master.debian.org/ftp/pool/";
+ Export "/srv/security-master.debian.org/export/";
Dak "/srv/security-master.debian.org/dak/";
Templates "/srv/security-master.debian.org/dak/templates/";
PoolRoot "pool/";
@@ -433,3 +434,8 @@ Urgency
critical;
};
};
+
+Changelogs
+{
+ Export "/srv/security-master.debian.org/export/changelogs";
+}
diff --git a/config/debian-security/export.sh b/config/debian-security/export.sh
new file mode 100755
index 0000000..339a8bf
--- /dev/null
+++ b/config/debian-security/export.sh
@@ -0,0 +1,27 @@
+#!/bin/bash
+
+set -e
+set -u
+set -E
+
+export SCRIPTVARS=/srv/security-master.debian.org/dak/config/debian-security/vars
+. $SCRIPTVARS
+
+# Make sure we start out with a sane umask setting
+umask 022
+
+# And use one locale, no matter what the caller has set
+export LANG=C
+export LC_ALL=C
+
+# extract changelogs and stuff
+function changelogs() {
+ log "Extracting changelogs"
+ dak make-changelog -e
+ mkdir -p ${exportpublic}/changelogs
+ cd ${exportpublic}/changelogs
+ rsync -aHW --delete --delete-after --ignore-errors ${exportdir}/changelogs/. .
+ sudo -H -u archvsync /home/archvsync/runmirrors metasdo > ~dak/runmirrors-metadata.log 2>&1 &
+}
+
+changelogs
--
1.5.6.5
Reply to: