ume-xephyr-start doesn't check dpkg install status, only dpkg status

Bug #153025 reported by Loïc Minier
2
Affects Status Importance Assigned to Milestone
ume-config-common (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Hi,

If you install then remove xserver-xephyr from a target's fs, ume-xephyr-start still thinks it's installed. This is because the test is:
dpkg --status $1 &> /dev/null
if [ "$?" -ne "0" ]; then
     ...

But "dpkg --status xserver-xephyr" will return 0 when a package has been purged and output:
Package: xserver-xephyr
Status: purge ok not-installed
Priority: optional
Section: x11

I think grepping for "Status: install ok installed" as well when dpkg --status returns 0 should be enough.

Bye,

Revision history for this message
J. Austin Rodriguez (jeanaustinr) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. We are sorry that we do not always have the capacity to look at all reported bugs in a timely manner. There have been many changes in Ubuntu since that time you reported the bug and your problem may have been fixed with some of the updates. If you could test the current Ubuntu development version, this would help us a lot. If you can test it, and it is still an issue, we would appreciate if you could upload updated logs by running apport-collect <bug #>, and any other logs that are relevant for this particular issue.

Changed in ume-config-common (Ubuntu):
status: New → 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.