View | Details | Raw Unified | Return to bug 194567 | Differences between
and this patch

Collapse All | Expand All

(-)src/distviper (-5 / +5 lines)
Lines 129-135 Link Here
129
#	The direcotry holding the ports tree.
129
#	The direcotry holding the ports tree.
130
#
130
#
131
getDistFiles_thorough() {
131
getDistFiles_thorough() {
132
	find "$portsdir" -type f -name distinfo | \
132
	find -H "$portsdir" -type f -name distinfo | \
133
		eval "xargs $extractFileCmd" | uniq
133
		eval "xargs $extractFileCmd" | uniq
134
}
134
}
135
135
Lines 198-208 Link Here
198
fi
198
fi
199
199
200
# Files before deletion.
200
# Files before deletion.
201
filesCount="$(($(find "$distdir" -type f|wc -l)))"
201
filesCount="$(($(find -H "$distdir" -type f|wc -l)))"
202
filesDelete=0
202
filesDelete=0
203
203
204
# Seek and destroy files not in the $keepFiles list.
204
# Seek and destroy files not in the $keepFiles list.
205
for file in $(find "$distdir" -type f); {
205
for file in $(find -H "$distdir" -type f); {
206
	file="${file#$distdir/}"
206
	file="${file#$distdir/}"
207
207
208
	if (echo "$keepFiles" | grep -qx "$file"); then
208
	if (echo "$keepFiles" | grep -qx "$file"); then
Lines 215-223 Link Here
215
}
215
}
216
216
217
# The number of deleted files
217
# The number of deleted files
218
filesDeleted="$(($filesCount - $(find "$distdir" -type f|wc -l)))"
218
filesDeleted="$(($filesCount - $(find -H "$distdir" -type f|wc -l)))"
219
219
220
test -z "$demo" && find -d "$distdir" -type d -exec rmdir \{} \; 2> /dev/null
220
test -z "$demo" && find -H -d "$distdir" -type d -exec rmdir \{} \; 2> /dev/null
221
221
222
if [ -n "$verbose" ]; then
222
if [ -n "$verbose" ]; then
223
	echo "$filesDelete files were suggested for deletion."
223
	echo "$filesDelete files were suggested for deletion."

Return to bug 194567