X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=config%2Fdebian%2Fdinstall.functions;h=f4babb0032d5632d3beabaa914b2579f1a573235;hb=c9ca62268c8358315ba45818291c9b0fdc475a2d;hp=f7510a3bef7a422616cc7a2c86e2036e08e9f1cf;hpb=d80b478585143693975aa41a37dbca2041152dc8;p=dak.git diff --git a/config/debian/dinstall.functions b/config/debian/dinstall.functions index f7510a3b..f4babb00 100644 --- a/config/debian/dinstall.functions +++ b/config/debian/dinstall.functions @@ -458,7 +458,7 @@ function mirrorpush() { while read SHASUM SIZE NAME; do if ! [ -f "${subdir}/${NAME}" ]; then bname=$(basename ${NAME}) - if [[ "${bname}" =~ ^(Packages|Sources|Translation-[a-zA-Z_]+)$ ]]; then + if [[ "${bname}" =~ ^(Packages|Sources|Contents-[a-zA-Z0-9-]|Translation-[a-zA-Z_]+)$ ]]; then # We don't keep unpacked files, don't check for their existance. # We might want to go and check their unpacked shasum, but right now # I don't care. I believe it should be enough if all the packed shasums @@ -542,7 +542,7 @@ function stats() { function cleantransactions() { log "Cleanup transaction ids older than 3 months" cd $base/backup/ - find -maxdepth 1 -mindepth 1 -type f -name 'txid_*' -mtime +90 -print0 | xargs -0 --no-run-if-empty rm + find -maxdepth 1 -mindepth 1 -type f -name 'txid_*' -mtime +90 -delete } function logstats() {