~ahasenack/landscape-client/landscape-client-1.5.5-0ubuntu0.9.04.0

« back to all changes in this revision

Viewing changes to landscape/broker/exchange.py

  • Committer: Bazaar Package Importer
  • Author(s): Free Ekanayaka
  • Date: 2009-12-16 10:50:05 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20091216105005-9p9absehm0l6sd2t
Tags: 1.4.0-0ubuntu0.9.04.0
* New upstream release (LP: #497351)

* Bug fixes:
  - Fix landscape daemons fail to start when too many groups are
    available (LP: #456124)
  - Fix landscape programs wake up far too much. (LP: #340843)
  - Fix Package manager fails with 'no such table: task' (LP #465846)
  - Fix test suite leaving temporary files around (LP #476418)
  - Fix the 1hr long wait for user data to be uploaded following a
    resynchronisation (LP #369000)

* Add support for Ubuntu release upgrades:
  - Add helper function to fetch many files at once (LP: #450629)
  - Handle release-upgrade messages in the packagemanager
    plugin (LP: #455217)
  - Add a release-upgrader task handler (LP: #462543)
  - Support upgrade-tool environment variables (LP: #463321)

* Add initial support for Smart package locking:
  - Detect and report changes about Smart package locks (#488108)

* Packaging fixes:
  - Turn unnecessary Pre-Depends on python-gobject into a regular Depends
  - If it's empty, remove /etc/landscape upon purge

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
"""The part of the broker which deals with communications with the server."""
2
2
import time
3
3
import logging
4
 
import md5
 
4
from landscape.lib.hashlib import md5
5
5
 
6
6
from twisted.internet.defer import succeed
7
7
 
283
283
 
284
284
    def _hash_types(self, types):
285
285
        accepted_types_str = ";".join(types)
286
 
        return md5.new(accepted_types_str).digest()
 
286
        return md5(accepted_types_str).digest()
287
287
 
288
288
    def _handle_result(self, payload, result):
289
289
        """Handle a response from the server.