man-db cron job returns dpkg-query errors about version strings
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
man-db (Ubuntu) |
Fix Released
|
Low
|
Colin Watson |
Bug Description
Binary package hint: man-db
I have apt sources where the Version string for packages starts with a letter. As a result I get a daily email from cron on each server containing multiple lines that look like:
dpkg-query: warning: parsing file '/var/lib/
error in Version string 'example-
Which is the stderr output of the command "dpkg-query -W -f '${Version}' dpkg"
The naming of the packages is not withing my control, and indeed the Debian policy manual suggests that upstream_version strings starting with non-digit alphanumerics is valid.
I would suggest that stderr from dpkg-query be supressed for the query on the cron job
"dpkg-query -W -f '${Version}' dpkg 2>/dev/null"
If you feel this is an error of dpkg-query rather than man-db, please reassign to dpkg.
http://
Version: 2.5.9-4
Just to add the note: the debian policy notes the version "should start with a digit" (rather than "must") so it's a valid warning from dpkg-query.