updates_available is incorrect in Fedora
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.
Changed in byobu: | |
status: | Fix Committed → Fix Released |
Thanks for the patch!
:-Dustin