Here is a short python example: from gi.repository import PackageKitGlib as pk
client = pk.Client() res = client.get_updates(pk.FilterEnum.NONE, None, lambda p, t, d: True, None) updates = 0 security = 0 for pkg in res.get_package_array(): updates += 1 info = pkg.get_info() if info == pk.InfoEnum.SECURITY: security =+ 1 print "There are %s updates available totally" % updates if security: print "There are %s important security updates!" % security -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/903756 Title: Use PackageKit interface to aptdaemon To manage notifications about this bug go to: https://bugs.launchpad.net/indicator-session/+bug/903756/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs