Skip to content
Commits on Source (2)
......@@ -127,11 +127,11 @@ function punew_do() {
STAMP=${STAMP:-$(date "+%Y%m%d%H%M")}
local exportdir="${qdir}/tree/${STAMP}"
local ppexportdir="${qdir}/tree/${STAMP}"
local targetdir="${qdir}/export"
mkdir -p -- ${exportdir}
dak export -q "${queue}" -d "${exportdir}" --all
ln -sfT ${exportdir} ${targetdir}
mkdir -p -- ${ppexportdir}
dak export -q "${queue}" -d "${ppexportdir}" --all
ln -sfT ${ppexportdir} ${targetdir}
find "${qdir}/tree" -mindepth 1 -maxdepth 1 -not -name "${STAMP}" -type d -print0 | xargs --no-run-if-empty -0 rm -rf
}
......
......@@ -210,17 +210,17 @@ function dedup() {
function mkmaintainers() {
local archiveroot
local indices
local mkmindices
log 'Creating Maintainers index ... '
for archive in "${public_archives[@]}"; do
archiveroot="$(get_archiveroot "${archive}")"
indices="${archiveroot}/indices"
if ! [[ -d ${indices} ]]; then
mkdir "${indices}"
mkmindices="${archiveroot}/indices"
if ! [[ -d ${mkmindices} ]]; then
mkdir "${mkmindices}"
fi
cd "${indices}"
cd "${mkmindices}"
rm -f Maintainers Maintainers.gz Uploaders Uploaders.gz
dak make-maintainers -a "${archive}" ${scriptdir}/masterfiles/pseudo-packages.maintainers
......