updates_available is incorrect in Fedora

Bug #440659 reported by Meethune
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
byobu
Fix Released
Low
Dustin Kirkland 

Bug Description

Certain plugins in yum generate additional output that will cause updates_available to report back incorrectly. For example, I have the yum-security plugin enabled. This causes the yum list updates output to look like this:

$ yum list updates
Loaded plugins: changelog, presto, refresh-packagekit, security
Skipping security plugin, no data
Updated Packages
byobu.noarch 2.36-3.fc11 mock

The code in updates_available doesn't take this into account. By passing '-q' to yum, you will suppress this additional output (including the 'Loaded plugins' output) and everything should report accurately again.

Before:
$ yum list updates | egrep -v "Updated Packages|Loaded plugins" | wc -l
2

After:
$ yum list updates -q | egrep -v "Updated Packages" | wc -l
1

I've attached a patch that fixes this. I have tested it on my F11 machine.

Tags: byobu fedora yum

Related branches

Revision history for this message
Meethune (meethune) wrote :
Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Thanks for the patch!

:-Dustin

Changed in byobu:
status: New → Triaged
importance: Undecided → Low
assignee: nobody → Dustin Kirkland (kirkland)
status: Triaged → Fix Committed
Changed in byobu:
status: Fix Committed → 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.