~mvo/update-manager/not-automatic

« back to all changes in this revision

Viewing changes to UpdateManager/Core/MetaRelease.py

  • Committer: Michael Vogt
  • Date: 2009-01-27 13:48:14 UTC
  • Revision ID: michael.vogt@ubuntu.com-20090127134814-irzg2ixiaduozksz
tests/test_dist_upgrade_fetcher_core.py,
tests/data-sources-list-test/sources.list.hardy:
- add tests for the MetaReleaseCore and DistUpgradeCore code
UpdateManager/Core/utils.py:
- make the url_downloadable() function more robust
UpdateManager/Core/MetaRelease.py:
- more debug output (if DEBUG_UPDATE_MANAGER is given)
UpdateManager/Core/DistUpgradeFetcherCore.py:
- more debug output (if DEBUG_UPDATE_MANAGER is given)
- import aptsources right from the beginning to avoid side effect
  of the import (apt_pkg.init() is called on module init)

Show diffs side-by-side

added added

removed removed

Lines of Context:
62
62
        # information about the available dists
63
63
        self.downloading = True
64
64
        self.new_dist = None
 
65
        self.current_dist_name = get_dist()
65
66
        self.no_longer_supported = None
66
67
 
67
68
        # default (if the conf file is missing)
157
158
 
158
159
    def parse(self):
159
160
        self._debug("MetaRelease.parse()")
160
 
        current_dist_name = get_dist()
 
161
        current_dist_name = self.current_dist_name
 
162
        self._debug("current dist name: '%s'" % current_dist_name)
161
163
        current_dist = None
162
164
        dists = []
163
165