On Mon, Mar 21, 2011 at 10:41:40AM +0800, Paul Wise wrote:
> Package: cruft
> Version: 0.9.14
> Severity: wishlist
> 
> I'm currently using the dpkg path-exclude/path-include options to drop
> l10n for all the languages I don't need installed. Unfortunately cruft
> reports these under the "missing: dpkg" section in the cruft report.

Hmm, I suspect this means dpkg does not omit the excluded paths in "dpkg
-L" output. Could you verify that please?

If it's true, it means cruft will need to parse the dpkg.cfg options and
to do the filtering by itself :-/

> Please add support for these two options to cruft.
> 
> pabs@chianamo:~$ cat /etc/dpkg/dpkg.cfg.d/dropl10n
> # Drop non-Australian locale stuff, keep some test ones
> path-exclude=/usr/share/locale/*
> path-include=/usr/share/locale/en_AU
> path-include=/usr/share/locale/de_DE
> path-include=/usr/share/locale/es_ES
> 
> # Drop non-English manual pages
> path-exclude=/usr/share/man/*
> path-include=/usr/share/man/man[1-9]/*

This means a program/script will be necessary that will:
 - on start, extract path-{in,ex}clude options from dpkg config files
 - read paths on stdin and filter them according to those options before
   writing on stdout
 - cruft should filter "dpkg -L" output through that program

Patches are welcome! :-)

-- 
Marcin Owsiany <[email protected]>             http://marcin.owsiany.pl/
GnuPG: 1024D/60F41216  FE67 DA2D 0ACA FC5E 3F75  D6F6 3A0D 8AA0 60F4 1216



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

Reply via email to