summaryrefslogtreecommitdiff
path: root/wwwbin/clean-test.sh
blob: 475f84f9d243d98504a6a8e193e3964571f2b474 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
LC_ALL=C; export LC_ALL
cd /home/pld/admins/th/ftp/test/SRPMS/.metadata || exit 1
#for file in `find . -name '*.info' -print`; do
for file in `find . -name '*.info' -mtime +1 -print`; do
	dfile=$(basename $file | sed -e 's#^\./##g')
	if (~/pld-ftp-admin/scripts/test-move.py test ready "$dfile" | grep -q "has only src.rpm built"); then
		echo "Removing $dfile..."
	~/pld-ftp-admin/scripts/remove.py test "$dfile"
	fi
done
for file in `find . -name '*.info' -mtime +100`; do
	dfile=$(basename $file | sed -e 's#^\./##g')
	echo "Removing $dfile..."
	~/pld-ftp-admin/scripts/remove.py test "$dfile"
done