Package: debsums
Version: 2.0.48+nmu3
Severity: important
File: /usr/bin/debsums
User: [email protected]
Usertags: multiarch

1/ You should not scan /var/lib/dpkg/status yourself to find a list of
installed packages. Use "dpkg-query -W" instead. With the introduction of
multiarch you might have the same packages listed multiple times with
a different architecture. dpkg-query -W correctly returns "foo",
"foo:arch" while your code would see "foo" twice.

2/ You should not access /var/lib/dpkg/info/$pkg.md5sums directly. Instead
you must ask dpkg-query --control-path to find out the correct path:

┏rivendell:~
┗(506)$ dpkg-query --control-path debsums
/var/lib/dpkg/info/debsums.postinst
/var/lib/dpkg/info/debsums.templates
/var/lib/dpkg/info/debsums.postrm
/var/lib/dpkg/info/debsums.md5sums
/var/lib/dpkg/info/debsums.config
┏rivendell:~
┗(507)$ dpkg-query --control-path debsums md5sums
/var/lib/dpkg/info/i386/debsums.md5sums

It returns nothing if the file doesn't exist.

It would be nice to see this fixed shortly so that we can upload a
multiarch-enabled dpkg.

Cheers,

-- 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 debsums depends on:
ii  debconf [debconf-2.0]        1.5.38      Debian configuration management sy
ii  perl                         5.10.1-17   Larry Wall's Practical Extraction 
ii  ucf                          3.0025+nmu1 Update Configuration File: preserv

debsums recommends no packages.

debsums suggests no packages.

-- Configuration Files:
/etc/default/debsums changed [not included]

-- debconf information excluded



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

Reply via email to