lp://staging/~dobey/aptdaemon/fix-imports

Created by dobey and last modified
Get this branch:
bzr branch lp://staging/~dobey/aptdaemon/fix-imports
Only dobey can upload to this branch. If you are dobey please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
dobey
Project:
Aptdaemon
Status:
Merged

Recent revisions

850. By dobey

Check that the item in sys.modules is not None before trying to import it

849. By Martin Pitt

fix "compatibilty" typo

848. By Martin Pitt

aptdaemon/client.py: Prefer GI GObject module

If 'gobject' is not available (such as in Python 3), but this module gets
imported before importing any gi.repository module, aptdaemon crashes with

Traceback (most recent call last):
  File "./software-properties-gtk", line 37, in <module>
    from softwareproperties.gtk.SoftwarePropertiesGtk import SoftwarePropertiesGtk
  File "/home/martin/ubuntu/software-properties-additional-drivers/softwareproperties/gtk/SoftwarePropertiesGtk.py", line 34, in <module>
    from aptdaemon import client
  File "/usr/lib/python3/dist-packages/aptdaemon/client.py", line 43, in <module>
    import gobject as GObject
ImportError: No module named gobject

Fix this by swapping the order around and only using gobject if it is already imported.

847. By Sebastian Heinlein

lintian supports skipping user profiles since 2.5.9

If $HOME is unset custom profiles of the user will be skipped. Make use of this.
Unfortunately we need a complete LINTIAN_ROOT for the test case - so we have to copy it around.

846. By Sebastian Heinlein

test: Give the fake-polkitd more time to get known to DBus. Thanks Steve.

Would be nice to switch this to dbus activation in the future

845. By Sebastian Heinlein

test: run the fake-polkitd also with Python 3. Thanks pitti for spotting

844. By Sebastian Heinlein

Merge fixes from Steve! Thanks

843. By Sebastian Heinlein

Fix PK tests

842. By Sebastian Heinlein

test: Set apt_pkg.config["Dir"] to the chroot

This is required by the key handling of apt.auth to use the chroot. In the
other tests it gets set by apt.Cache()

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
Stacked on:
lp://staging/aptdaemon
This branch contains Public information 
Everyone can see this information.

Subscribers