]> git.decadent.org.uk Git - dak.git/commitdiff
Switch to a different way to update backports.debian.org mirrors.
authorAnsgar Burchardt <ansgar@debian.org>
Sat, 6 Jul 2013 22:36:32 +0000 (00:36 +0200)
committerAnsgar Burchardt <ansgar@debian.org>
Sat, 6 Jul 2013 22:59:02 +0000 (00:59 +0200)
config/debian/cron.dinstall
config/debian/dinstall.functions
scripts/debian/sync-dd

index 2a2fe157ea5f2cb782531dd519ea13c647f705d1..701754caf722f02355d0deea8555d9df96cf89c6 100755 (executable)
@@ -444,6 +444,14 @@ GO=(
 )
 stage $GO &
 
+GO=(
+    FUNC="mirrorpush-backports"
+    TIME="mirrorpush-backports"
+    ARGS=""
+    ERR="false"
+)
+stage $GO &
+
 GO=(
     FUNC="i18n2"
     TIME="i18n 2"
index 3025c44105c519f60a9c57047c082c2536d53ae2..4456d8dcfecef28434ca0b1012143c9d958918bf 100644 (file)
@@ -501,6 +501,11 @@ function mirrorpush() {
     sudo -H -u archvsync /home/archvsync/runmirrors -a backports > ~dak/runmirrorsbpo.log 2>&1 &
 }
 
+function mirrorpush-backports() {
+    log "Syncing backports mirror"
+    sudo -u backports /home/backports/bin/update-archive
+}
+
 function i18n2() {
     log "Exporting package data foo for i18n project"
     STAMP=$(date "+%Y%m%d%H%M")
index 835442a059fd40730f66cf0fd724c83b056ffde0..1c9b95b68ad0f4c1963d8d7dfd58d93040c4d48a 100755 (executable)
@@ -103,18 +103,6 @@ if lockfile -r3 "${lockfile}"; then
        /srv/ftp.debian.org/ "${host2}:/srv/ftp.debian.org/"
    # command for the remote side:
    # command="rsync --server -lHogDtpre.iLsf -B8192 --timeout=3600 --delete-after . /srv/ftp.debian.org/"
-
-   if [[ ${mode} == pool ]]; then
-       # Sync backports
-       rsync -aH -B8192 \
-           --delete --delete-after \
-           --timeout 3600 \
-           -e 'ssh -o ConnectTimeout=30 -o SetupTimeout=30' \
-           /srv/backports-master.debian.org/mirror/ \
-           ries-sync3:/srv/backports.debian.org/htdocs/debian-backports/
-       # And now tell static.debian.org that something changed
-       /usr/local/bin/static-update-component backports.debian.org
-   fi
 else
     echo "Couldn't get the lock, not syncing"
     exit 0