aboutsummaryrefslogtreecommitdiffstats
path: root/iurt_cache_cleaner.sh
diff options
context:
space:
mode:
Diffstat (limited to 'iurt_cache_cleaner.sh')
-rwxr-xr-xiurt_cache_cleaner.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/iurt_cache_cleaner.sh b/iurt_cache_cleaner.sh
index 1830b35..34e3220 100755
--- a/iurt_cache_cleaner.sh
+++ b/iurt_cache_cleaner.sh
@@ -25,7 +25,7 @@ function clean_package() {
srpm="$3"
echo -e "Cleaning all packages generated by\n $srpm."
- find "$TOPDIR/$distro/$section" -name '*.rpm' ! -name '*.src.rpm' |\
+ find "$TOPDIR/$distro/"{,debug_}"$section" -name '*.rpm' ! -name '*.src.rpm' |\
xargs rpm -qp --qf '%{SOURCERPM} %{name}-%{version}-%{release}.%{arch}.rpm\n' |\
sed -n "s@^$srpm @$TOPDIR/$distro/$section/@p" |\
xargs rm -fv "$TOPDIR/$distro/$section/$srpm"