Use PackageKit interface to aptdaemon
Bug #903756 reported by
Ken VanDine
This bug affects 15 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Session Menu |
Fix Released
|
High
|
Conor Curran | ||
indicator-session (Ubuntu) |
Fix Released
|
High
|
Conor Curran | ||
Precise |
Fix Released
|
High
|
Conor Curran |
Bug Description
aptdaemon in precise now includes support for the PK API, which is the preferred method for determining the state of updates. This should be more reliable than the current approach indicator-session uses and hopefully will resolve a few of the open bugs related to update notification.
http://
http://
Related branches
lp:~cjcurran/indicator-session/migrate-to-new-apt-api
- Ted Gould (community): Approve
-
Diff: 1020 lines (+190/-715)7 files modifiedconfigure.ac (+4/-2)
src/Makefile.am (+1/-3)
src/apt-transaction.c (+0/-263)
src/apt-transaction.h (+0/-49)
src/apt-watcher.c (+183/-397)
src/apt-watcher.h (+0/-1)
src/user-widget.c (+2/-0)
Changed in indicator-session: | |
importance: | Undecided → High |
Changed in indicator-session (Ubuntu): | |
importance: | Undecided → High |
Changed in indicator-session: | |
assignee: | nobody → Conor Curran (cjcurran) |
Changed in indicator-session (Ubuntu): | |
assignee: | nobody → Conor Curran (cjcurran) |
Changed in indicator-session: | |
status: | New → Triaged |
Changed in indicator-session (Ubuntu): | |
status: | New → Triaged |
Changed in indicator-session: | |
status: | Triaged → In Progress |
Changed in indicator-session (Ubuntu Precise): | |
status: | Triaged → In Progress |
Changed in indicator-session: | |
milestone: | none → 0.3.91 |
Changed in indicator-session: | |
status: | In Progress → Fix Committed |
Changed in indicator-session (Ubuntu Precise): | |
status: | In Progress → Fix Committed |
Changed in indicator-session (Ubuntu Precise): | |
status: | Fix Committed → In Progress |
Changed in indicator-session: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Here is a short python example:
from gi.repository import PackageKitGlib as pk
client = pk.Client() get_updates( pk.FilterEnum. NONE, None, lambda p, t, d: True, None) package_ array() : SECURITY:
res = client.
updates = 0
security = 0
for pkg in res.get_
updates += 1
info = pkg.get_info()
if info == pk.InfoEnum.
security =+ 1
print "There are %s updates available totally" % updates
if security:
print "There are %s important security updates!" % security