[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#322762: no blocking bugs anymore

Santiago Vila wrote:
> Well, what I see is that after an upgrade from sarge to etch, the user
> may have an empty /usr/doc. But even in such case, it is not base-files
> business to remove symlinks indiscriminately in /usr/doc, as they
> could be there because the system admin puts them there deliberately
> for whatever reason.

How would you feel about removing only broken symlinks?

if [ -d /usr/doc ] && [ ! -L /usr/doc ]; then
	find -L /usr/doc -maxdepth 1 -mindepth 1 -lname \* -print0 | xargs -0 rm -f
	rmdir --ignore-fail-on-non-empty /usr/doc 2>/dev/null

see shy jo

Attachment: signature.asc
Description: Digital signature

Reply to: