aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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