Debian Bug Tracking System schrieb am Wed 10. May, 12:48 (-0700): > From: Marcin Owsiany <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: Re: Bug#366616: cruft: Don't report .pyc and .pyo files if a .py > file exist > Date: Wed, 10 May 2006 20:34:07 +0100 > User-Agent: Mutt/1.5.11+cvs20060403 > > Version: 0.9.6-0.11 > > On Tue, May 09, 2006 at 06:50:01PM +0200, Jörg Sommer wrote: > > files ending with .pyc or .pyo are OK if a file the the ending .py exist. > > Only if the package containing them calls compileall.py in postinst or > similar. Since this is package-dependant, it should be added to the > package's explain script.
Why is this package dependent? Why not look in /var/lib/dpkg/info/$pkg.postint for the strings "Automatically added by dh_python" and "compileall.py" and if they are found you accept all .pyo and .pyc files in the directories enumerated in DIRLIST > In fact cruft already does that for five packages, thus closing this > bug. This isn't a really generic way and I'm sure it can be done in a more generic way that makes it obsolete to have for every package a special file. Regards, Jörg. -- Gienger's Law (http://www.bruhaha.de/laws.html): Die Wichtigkeit eines Newspostings im Usenet ist reziprok zur Anzahl der enthaltenenen, kumulierten Ausrufungszeichen.
pgpk9DMjYqk2N.pgp
Description: PGP signature