dpkg error when triggers are activated

Bug #1848387 reported by Jeremy Soller
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
appstream (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

The following message, or something like it, is output when an update to appstream is done on 19.10:

dpkg: error: version '/usr/share/app-info/yaml /usr/share/app-info/icons' has ba
d syntax: version string has embedded spaces

This appears to be caused by this line in the appstream.postinst:

if dpkg --compare-versions "$2" ge-nl "0.12.8"; then

This gets called when the registered triggers are activated:

interest-noawait /usr/share/app-info/icons
interest-noawait /usr/share/app-info/yaml
interest-noawait /usr/share/app-info/xml

I recommend checking in the postinst if we are handling a trigger and avoiding the dpkg version comparison

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in appstream (Ubuntu):
status: New → Confirmed
Revision history for this message
Matthias Klumpp (ximion) wrote :

This is resolved in appstream >= 0.12.10-1

Changed in appstream (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.