You've already forked macports-base
mirror of
https://github.com/macports/macports-base.git
synced 2026-07-12 18:18:43 -07:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user