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

Re: Some of your Debian packages might need attention -- Felix



On Sun, Jul 29, 2007 at 06:06:12PM +1000, skaller wrote:
> On Sun, 2007-07-29 at 08:52 +0200, Lionel Elie Mamane wrote:

>> "changed" and "new" are between:

>>  - just after unpack
>>  - after build && clean

>> Normally there should be _no_ difference between these two moments.

> Well this would explain the bug, and it is probably going to
> be a persistent problem. It's rather hard to keep track of
> what needs to be deleted.. I really want something like:

> 	rm -rf --keep=Makefile --keep=configure --keep=lpsrc *

> is there a way to encode that?

Something like:

find . '(' -type f -not -name '.*' -not -name Makefile -not -name configure -not -name lpsrc ')' -print0 | xargs --null rm -f
find . -mindepth 1 -depth '(' -type d -not -name '.*' ')' -print0 | xargs --null rmdir --ignore-fail-on-non-empty


-- 
Lionel



Reply to: