aboutsummaryrefslogtreecommitdiffstats
path: root/iurt_cache_cleaner.sh
diff options
context:
space:
mode:
authorMarcelo Leitner <mrl@mandriva.com>2007-06-15 19:52:35 +0000
committerMarcelo Leitner <mrl@mandriva.com>2007-06-15 19:52:35 +0000
commit0da39ff630055089cfb3716a51a6d9bb15f4ab99 (patch)
tree478d75b3bdca7914e5c24dbafc692b26a96e728e /iurt_cache_cleaner.sh
parentff92752587c7a0a50a5902a98b7114e96cde947d (diff)
downloadiurt-0da39ff630055089cfb3716a51a6d9bb15f4ab99.tar
iurt-0da39ff630055089cfb3716a51a6d9bb15f4ab99.tar.gz
iurt-0da39ff630055089cfb3716a51a6d9bb15f4ab99.tar.bz2
iurt-0da39ff630055089cfb3716a51a6d9bb15f4ab99.tar.xz
iurt-0da39ff630055089cfb3716a51a6d9bb15f4ab99.zip
- Also clean unsupported archs, which are uploaded without .src.rpms.
Diffstat (limited to 'iurt_cache_cleaner.sh')
-rwxr-xr-xiurt_cache_cleaner.sh8
1 files changed, 8 insertions, 0 deletions
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