]> err.no Git - dak/commitdiff
export changelogs on security
authorJoerg Jaspert <joerg@debian.org>
Wed, 16 Feb 2011 22:23:01 +0000 (23:23 +0100)
committerJoerg Jaspert <joerg@debian.org>
Wed, 16 Feb 2011 22:23:01 +0000 (23:23 +0100)
Signed-off-by: Joerg Jaspert <joerg@debian.org>
config/debian-security/dak.conf
config/debian-security/export.sh [new file with mode: 0755]

index 32dc6aad5a8c3b5990501aaf24fd26012d4e8941..fdfd212082bc28a8be0db6eb8d5ee6cfc3768fc6 100644 (file)
@@ -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 (executable)
index 0000000..339a8bf
--- /dev/null
@@ -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