Package: cruft
Version: 0.9.6-0.15
Followup-For: Bug #373708

I think your CAPITALS idea for explain scripts sounds sane.  Debian
packages are all (I'm pretty sure) lower case as a matter of Policy, so
that should work out fine.

However, why stop at explain scripts?  Why not also roll this out to
filter files as well?  Maybe this is implied, but I wanted to make the 
recomendation explicit.  I synchronize my explain scripts and filter
files between two systems, because for the most part, there's a lot of
overlap.  However, this leads to the situation where there are
package-based filter files in /etc/cruft/filters that are probably best
skipped.  Since cruft doesn't do that, I just wrote a simple bash script
to do some sanity checks to make sure that filter files for uninstalled
packages aren't really affecting the final results.

Also, with respect to your idea that explain scripts can be smart, I 
wanted to point out that I found it useful to emulate the "may exist"
semantics of the filter files with the explain scripts by performing an
"echo $file" only if "test -e $file".  This is kind of a cheap hack, and
maybe it might be more convenient if there were three directories:
may_exist_scripts/, must_exist_scripts/, and filters/.  Note, filters
files can not have "may_exist" semantics because they allow for
globbing. 

In particular, I found this kind of "may_exist" emulation useful for all
the compiled .pyc and .elc generated by auctex, python-support, emacs,
etc.  If I were the package maintainer, I might be able to specify which
files get compiled a lot more rigorously, but as an end user, I have to
just be just slightly less conservative -- some of those "postinst"
scripts get pretty involved.

Anyway, I'm pretty flexible on the specifics of these recommendations.  I just
wanted to throw some ideas out there and suggest how I might approach the
design. 

Regards,
Sukant Hajra

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable'), (90, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.6.17-hole
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages cruft depends on:
ii  file                          4.17-2     Determines file type using "magic"
ii  libc6                         2.3.6-15   GNU C Library: Shared libraries

cruft recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to