reclaim: Ignore .turd_MacPorts files

Ignore .turd_MacPorts files in reclaim to avoid confusing users when
reclaim claims the file is an unused distfile even though it was put
there by the MacPorts installer.

Closes: https://trac.macports.org/ticket/53436
This commit is contained in:
Clemens Lang
2017-01-29 19:57:02 +01:00
parent b15092af14
commit b0c0957de8
+6
View File
@@ -122,6 +122,12 @@ namespace eval reclaim {
walk_files $currentPath $files_in_use unused
}
file {
if {$item eq ".turd_MacPorts"} {
# .turd_MacPorts files are created by MacPorts when creating the MacPorts
# installer packages from the MacPorts port so that empty directories are
# not deleted after destroot. Treat those files as if they were not there.
continue
}
if {[lsearch -exact -sorted $files_in_use $currentPath] == -1} {
ui_info "Found unused distfile $currentPath"
lappend unused $currentPath