From d88b12c6e319474eceeebe5afd9d1e148f3cd7cd Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Mon, 12 Mar 2012 15:41:49 +0100 Subject: [PATCH] 30-openmamba-autobuild-cleanold: support for tar.gz, tar.bz2 and tar.xz extensions --- etc/cron.daily/30-openmamba-autobuild-cleanold | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/etc/cron.daily/30-openmamba-autobuild-cleanold b/etc/cron.daily/30-openmamba-autobuild-cleanold index a202d32..52727ac 100755 --- a/etc/cron.daily/30-openmamba-autobuild-cleanold +++ b/etc/cron.daily/30-openmamba-autobuild-cleanold @@ -9,7 +9,7 @@ DESTBASEDIR=/var/ftp/pub/openmamba/devel/media DESTBASEURL=/pub/openmamba/devel/media [ "$TODAYDATE" ] || TODAYDATE=`date +%Y%m%d` GLOBDOWNLOADSFILE=$DESTBASEDIR/downloads.inc -ARCH=i586 +LANGS="it en es" tmpfile=`mktemp` @@ -17,11 +17,10 @@ tmpfile=`mktemp` echo "Error: cannot create temporary files; aborting." exit 1 } - for l in $LANGS; do for d in `find $DESTBASEDIR/*/$l -maxdepth 0 -type d`; do > $tmpfile - for f in `find $d -maxdepth 1 -name \*.iso -o -name \*.cpio.gz`; do + for f in `find $d -maxdepth 1 -name \*.iso -o -name \*.cpio.gz -o -name \*.tar.gz -o -name \*.tar.xz -o -name \*.tar.bz2`; do echo `stat -c %Z $f` `basename $f` >> $tmpfile done