updates_available doesn't work when using pkcon
Bug #1255493 reported by
kealthou
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
byobu |
Fix Released
|
Medium
|
Dustin Kirkland |
Bug Description
Replace
flock -xn "$flock" pkcon get-updates -p | grep -c '^Package' >"$mycache" 2>/dev/null &
with
LC_ALL=C flock -xn "$flock" pkcon get-updates -p | awk '/^Results:$/ { start=NR }; /^Security/ { security++ }; END { if (!/There are no updates available at this time./) { print NR-start, security }}' > "$mycache" 2>/dev/null &
It's a bit ugly-looking.
Changed in byobu: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
I don't have a pkcon setup to test this, but it looks reasonable to me. Please confirm here if this committed change works for you.
Committed revision 2255.