From: Joerg Jaspert Date: Thu, 24 Dec 2015 22:48:56 +0000 (+0100) Subject: Don't overwrite mirrordir variable X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=79e9cabc86bc8aabf1cb9591d450f021e75a7efe;p=dak.git Don't overwrite mirrordir variable use the existing global one. Yes, this points to the ftp-master.d.o/mirror dir. If an archives mirrordir really needs to be elsewhere, symlink it. --- diff --git a/config/debian/dinstall.functions b/config/debian/dinstall.functions index a0c362c1..334d5e46 100644 --- a/config/debian/dinstall.functions +++ b/config/debian/dinstall.functions @@ -432,11 +432,10 @@ function mkchecksums() { } function mirror() { - local archiveroot mirrordir targetpath TRACEFILE + local archiveroot targetpath TRACEFILE for archive in "${public_archives[@]}"; do archiveroot="$(get_archiveroot "${archive}")" - mirrordir="${archiveroot}/../mirror" targetpath="${mirrordir}/${archive}" TRACEFILE="${archiveroot}/project/trace/ftp-master.debian.org" mkdir -p "${archiveroot}/project/trace/" @@ -491,12 +490,11 @@ function ddaccess() { function mirrorpush() { log "Checking the public archive copies..." - local archiveroot mirrordir targetpath + local archiveroot targetpath for archive in "${public_archives[@]}"; do log "... archive: ${archive}" archiveroot="$(get_archiveroot "${archive}")" - mirrordir="${archiveroot}/../mirror" targetpath="${mirrordir}/${archive}" cd ${targetpath}/dists