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

Launchpad Bug Tracker 1040619 at bugs.launchpad.net
Fri Sep 7 08:25:09 UTC 2012


This bug was fixed in the package aptdaemon - 0.45+bzr856-0ubuntu1

---------------
aptdaemon (0.45+bzr856-0ubuntu1) quantal; urgency=low

  * New upstream snapshot:
    - pkcompat: Fix get_files() LP: #1040619 (thanks to Martin Pitt)
    - Fix crash when run inside non-ascii dirs LP: #1044900
    - Fix crash in widget's diff view if a @@ line does not have a range
      LP: #875879 (thanks to Brian Murray)
    - Support credentials change when adding a repository that is already
      in sources.list/auth.conf
 -- Michael Vogt <michael.vogt at ubuntu.com>   Fri, 07 Sep 2012 10:20:10 +0200

** Changed in: aptdaemon (Ubuntu)
       Status: Fix Committed => Fix Released

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

Title:
  aptdaemon does not support listing the files of a package

Status in “aptdaemon” package in Ubuntu:
  Fix Released

Bug description:
  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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/aptdaemon/+bug/1040619/+subscriptions




More information about the foundations-bugs mailing list