[Bug 1040619] [NEW] aptdaemon does not support listing the files of a package

Launchpad Bug Tracker 1040619 at bugs.launchpad.net
Thu Aug 23 12:24:03 UTC 2012


You have been subscribed to a public bug:

I am installing packages out of a Python program (system-config-printer)
and want to list the files contained in the installed package via

----------
#!/usr/bin/python

from gi.repository import GLib, PackageKitGlib
import sys

package = sys.argv[1]

try:
    res = pk.resolve(PackageKitGlib.FilterEnum.NONE, [package],
                     None, lambda p, t, d: True, None)
except GLib.GError:
    sys.exit(1)
if res.get_exit_code() != PackageKitGlib.ExitEnum.SUCCESS:
    sys.exit(1)
package_ids = res.get_package_array()
if len(package_ids) <= 0:
    sys.exit(1)
package_id = package_ids[0].get_id()

try:
    res = pk.get_files([package_id], None, progress, None)
except GLib.GError:
    pass

files = res.get_files_array()
if not files:
    print []
print files[0].get_property('files')
----------

The result is always empty. I asked on IRC and this is due to missing
implementation of listing files in aptdaemon.

** Affects: aptdaemon (Ubuntu)
     Importance: High
     Assignee: Martin Pitt (pitti)
         Status: In Progress

-- 
aptdaemon does not support listing the files of a package
https://bugs.launchpad.net/bugs/1040619
You received this bug notification because you are a member of Ubuntu Foundations Bugs, which is subscribed to aptdaemon in Ubuntu.




More information about the foundations-bugs mailing list