From 0da39ff630055089cfb3716a51a6d9bb15f4ab99 Mon Sep 17 00:00:00 2001 From: Marcelo Leitner Date: Fri, 15 Jun 2007 19:52:35 +0000 Subject: - Also clean unsupported archs, which are uploaded without .src.rpms. --- iurt_cache_cleaner.sh | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'iurt_cache_cleaner.sh') diff --git a/iurt_cache_cleaner.sh b/iurt_cache_cleaner.sh index 34e3220..b648d34 100755 --- a/iurt_cache_cleaner.sh +++ b/iurt_cache_cleaner.sh @@ -115,3 +115,11 @@ while read distro; do echo "Package should remain on cache." done done + +# Check for unsupported archs, which are uploaded without .src.rpms +echo +echo "Cleaning unsupported archs.." +find "$TOPDIR" -type f -name '*.rpm' \ + ! -name '*.i586.rpm' ! -name '*.x86_64.rpm' \ + ! -name '*.noarch.rpm' ! -name '*.src.rpm' |\ + xargs rm -fv -- cgit v1.2.1