From 7416477a64d2fddcf817b8802a6f8df55cdbf55c Mon Sep 17 00:00:00 2001 From: maxice8 Date: Tue, 9 Apr 2019 04:12:24 -0300 Subject: [PATCH] purge_distfiles.sh: forcefully remove files --- common/xbps-src/shutils/purge_distfiles.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/xbps-src/shutils/purge_distfiles.sh b/common/xbps-src/shutils/purge_distfiles.sh index 1cfaf5bdc0..558f34ca79 100644 --- a/common/xbps-src/shutils/purge_distfiles.sh +++ b/common/xbps-src/shutils/purge_distfiles.sh @@ -79,7 +79,7 @@ purge_distfiles() { [ -n "${my_hashes[$hash]}" ] && continue inode=$(stat "$file" --printf "%i") echo "Obsolete $hash (inode: $inode)" - ( IFS="|"; for f in ${inodes[$inode]}; do rm -v "$f"; rmdir "${f%/*}" 2>/dev/null; done ) + ( IFS="|"; for f in ${inodes[$inode]}; do rm -vf "$f"; rmdir "${f%/*}" 2>/dev/null; done ) done echo "Done." }