3 function purgeempty() {
4 log "Purging empty directories"
7 for archive in "${public_archives[@]}"; do
8 log "... archive: ${archive}"
9 archiveroot="$(get_archiveroot "${archive}")"
12 if [ ! -z "$(find ${archiveroot}/pool/ -type d -empty)" ]; then
13 find ${archiveroot}/pool/ -type d -empty | xargs rmdir;
18 function gitcleanup() {
20 cd ${public}/git/dak.git
22 git update-server-info
23 # now workaround a git bug not honoring the setup in logs/*
24 # (fix in development, but until it reached backports.org.......)
28 function fixsymlinks() {
32 for archive in "${public_archives[@]}"; do
33 log "... archive: ${archive}"
34 archiveroot="$(get_archiveroot "${archive}")"
35 symlinks -d -r ${archiveroot}
39 function linkmorgue() {
40 ${scriptsdir}/link_morgue.sh