aptdaemon does not support listing the files of a package
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
aptdaemon (Ubuntu) |
Fix Released
|
High
|
Martin Pitt |
Bug Description
I am installing packages out of a Python program (system-
----------
#!/usr/bin/python
from gi.repository import GLib, PackageKitGlib
import sys
package = sys.argv[1]
try:
res = pk.resolve(
except GLib.GError:
sys.exit(1)
if res.get_exit_code() != PackageKitGlib.
sys.exit(1)
package_ids = res.get_
if len(package_ids) <= 0:
sys.exit(1)
package_id = package_
try:
res = pk.get_
except GLib.GError:
pass
files = res.get_
if not files:
print []
print files[0]
----------
The result is always empty. I asked on IRC and this is due to missing implementation of listing files in aptdaemon.
Changed in cups (Ubuntu): | |
importance: | Undecided → High |
assignee: | nobody → Martin Pitt (pitti) |
affects: | cups (Ubuntu) → aptdaemon (Ubuntu) |
Changed in aptdaemon (Ubuntu): | |
status: | New → In Progress |
Reproduced in a test case, and fixed in trunk: http:// bazaar. launchpad. net/~aptdaemon- developers/ aptdaemon/ main/revision/ 853