Your message dated Tue, 1 Jan 2008 14:07:51 +0100
with message-id <[EMAIL PROTECTED]>
and subject line Bug#458523: dpkg-query: Missing newline make output 
hard/impossible to parse
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: dpkg
Version: 1.14.14
Severity: important

When trying to list all obsolete init.d scripts that are conffiles, I
ran into a problem with the output from dpkg-query.  The reason is
that there is no newline between the list of files between different
packages.

Here is an example to demonstrate the problem:

  minerva:/# dpkg-query -W -f='${Conffiles}' | grep /etc/init.d/init.d |grep 
obsolete|head -2
   /etc/init.d/loadcpufreq 5cf8c5572d789beaf18d79fc52f95665 obsolete
   /etc/fonts/conf.d/unhinted.conf 4070b0651a9e3e0d26a77d6cc6f7e575 obsolete 
/etc/init.d/fuse 0a6a4540ffd72926dbb9f12d9f1ad31d
  minerva:/#

Notice how there is no newline between 'obsolete' and
'/etc/init.d/fuse'.

Please change the output from dpkg-query to add a newline between
entries for different packages.

Happy hacking,
-- 
Petter Reinholdtsen



--- End Message ---
--- Begin Message ---
On Tue, 01 Jan 2008, Petter Reinholdtsen wrote:
> Here is an example to demonstrate the problem:
> 
>   minerva:/# dpkg-query -W -f='${Conffiles}' | grep /etc/init.d/init.d |grep 
> obsolete|head -2
>    /etc/init.d/loadcpufreq 5cf8c5572d789beaf18d79fc52f95665 obsolete
>    /etc/fonts/conf.d/unhinted.conf 4070b0651a9e3e0d26a77d6cc6f7e575 obsolete 
> /etc/init.d/fuse 0a6a4540ffd72926dbb9f12d9f1ad31d
>   minerva:/#
> 
> Notice how there is no newline between 'obsolete' and
> '/etc/init.d/fuse'.
> 
> Please change the output from dpkg-query to add a newline between
> entries for different packages.

Please use dpkg-query -W -f='${Conffiles}\n' then.

I don't think that always adding a newline is a good idea as it's not
backwards compatible. And fields never end with an newline character (even
multi-line fields).

Cheers,
-- 
Raphaël Hertzog

Le best-seller français mis à jour pour Debian Etch :
http://www.ouaza.com/livre/admin-debian/


--- End Message ---

Reply via email to