Package: cruft
Version: 0.9.12
Severity: important
With the introduction of multiarch, dpkg's internal database will evolve.
You should not rely on parsing .list files but use dpkg-query -L.
You can supply a list of packages whose files you want:
dpkg-query -W | awk '{print $1}' | xargs dpkg-query -L
There are multiple places where you are accessing dpkg's
internal database, at least those:
$ grep -r dpkg/info/ /usr/lib/cruft/
/usr/lib/cruft/filters_list: elif [ -e "/var/lib/dpkg/info/${f}.extrafiles"
] ; then
/usr/lib/cruft/filters_list: echo
"${LIST}/var/lib/dpkg/info/${f}.extrafiles"
/usr/lib/cruft/explain/reportbug:f="/var/lib/dpkg/info/$p.list"
/usr/lib/cruft/explain/rubber:f="/var/lib/dpkg/info/$p.list"
/usr/lib/cruft/explain/linda:f="/var/lib/dpkg/info/$p.list"
/usr/lib/cruft/explain/apt-listchanges:f="/var/lib/dpkg/info/$p.list"
/usr/lib/cruft/explain/cvs2svn:f="/var/lib/dpkg/info/$p.list"
/usr/lib/cruft/explain/dpkg:#
/var/lib/dpkg/info/<PROVIDING_PACKAGE>.list:<FILENAME>
/usr/lib/cruft/explain/dpkg:my $re = qr{^/var/lib/dpkg/info/(\S+)\.list:(.*)$};
/usr/lib/cruft/common.sh: [ -f "/var/lib/dpkg/info/${pkg}.list" ] ||
/usr/lib/cruft/common.sh: [ -f "/var/lib/dpkg/info/${pkg}.prerm" ] ||
/usr/lib/cruft/common.sh: [ -f "/var/lib/dpkg/info/${pkg}.postrm" ]
/usr/lib/cruft/filters-unex/dpkg:/var/lib/dpkg/info/*
When you have to find out the path of your "extrafiles", you should use
dpkg-query --control-path <package> extrafiles
┏rivendell:~
┗(511)$ dpkg-query --control-path cruft md5sums
/var/lib/dpkg/info/cruft.md5sums
┏rivendell:~
┗(512)$ dpkg-query --control-path cruft extrafiles
┏rivendell:~
┗(513)$
It returns nothing if the file doesn't exist.
It would be nice have this fixed quickly so that we can upload a multiarch
enabled dpkg to experimental and then sid.
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (150,
'experimental')
Architecture: i386 (x86_64)
Kernel: Linux 2.6.37-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages cruft depends on:
ii file 5.04-5 Determines file type using "magic"
ii libc6 2.11.2-11 Embedded GNU C Library: Shared lib
cruft recommends no packages.
cruft suggests no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]