~ubuntu-branches/ubuntu/oneiric/landscape-client/oneiric

« back to all changes in this revision

Viewing changes to landscape/package/facade.py

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Hasenack
  • Date: 2011-03-01 15:38:11 UTC
  • mfrom: (1.1.22 upstream)
  • Revision ID: james.westby@ubuntu.com-20110301153811-ow0pu4j068a9ysgo
Tags: 11.02-0ubuntu0.11.04.0
* New upstream version (LP: #727324)

  - Exit gracefully instead of crashing when the filesystem is
    read-only (LP: #649997).

  - Drop hal requirement (LP: #708502).

  - Enable HTTP compression in Curl (LP: #297623).

  - Explicitly name log files that need to be rotated (LP: #634236).

  - Assorted test suite fixes

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
 
40
40
    _deb_package_type = None
41
41
 
42
 
    def __init__(self, smart_init_kwargs={}):
 
42
    def __init__(self, smart_init_kwargs={}, sysconf_args=None):
43
43
        """
44
44
        @param smart_init_kwargs: A dictionary that can be used to pass
45
45
            specific keyword parameters to to L{smart.init}.
46
46
        """
47
47
        self._smart_init_kwargs = smart_init_kwargs.copy()
48
48
        self._smart_init_kwargs.setdefault("interface", "landscape")
 
49
        self._sysconfig_args = sysconf_args or {}
49
50
        self._reset()
50
51
 
51
52
    def _reset(self):
70
71
                    install_landscape_interface)
71
72
                install_landscape_interface()
72
73
            self._ctrl = smart.init(**self._smart_init_kwargs)
 
74
            for key, value in self._sysconfig_args.items():
 
75
                smart.sysconf.set(key, value, soft=True)
73
76
            smart.initDistro(self._ctrl)
74
77
            smart.initPlugins()
75
78
            smart.sysconf.set("pm-iface-output", True, soft=True)
220
223
        changeset = transaction.getChangeSet()
221
224
 
222
225
        if not changeset:
223
 
            return None # Nothing to do.
 
226
            return None  # Nothing to do.
224
227
 
225
228
        missing = []
226
229
        for pkg, op in changeset.items():