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

Re: Problems found by piuparts



"Olaf van der Spek" <olafvdspek@gmail.com> wrote:

> On 2/22/06, Frank Küster <frank@debian.org> wrote:
>> Adeodato Simó <dato@net.com.org.es> wrote:
>>
>> >   Correct, so one would put in foo.postrm:
>> >
>> >     rmdir --ignore-fail-on-non-empty /usr/local/lib/foo
>>
>> That's not sufficient, because /usr/local may be mounted ro, and
>> therefore the command may fail even if the directory is empty.
>>
>> rmdir --ignore-fail-on-non-empty /usr/local/lib/foo || true
>>
>> or maybe just
>>
>> rmdir /usr/local/lib/foo 2>/dev/null || true
>
> Shouldn't logic like that be in one central place (dpkg or a library)
> and not spread over dozens of packages?

A central library would be nice.  But we currently don't have one, and
Policy 9.1.2 describes how to handle /usr/local.

Regards, Frank
-- 
Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX)



Reply to: