~mvo/update-manager/not-automatic

« back to all changes in this revision

Viewing changes to DistUpgrade/DistUpgradeController.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:
1203
1203
        # 
1204
1204
        # make sure to remove file on cancel
1205
1205
        
 
1206
        # FIXME: use the DistUpgradeFetcherCore logic
 
1207
        #        in mirror_from_sources_list() here
 
1208
        #        (and factor that code out into a helper)
 
1209
 
1206
1210
        conf_option = "SourcesList"
1207
1211
        if self.config.has_option("PreRequists",conf_option+"-%s" % self.arch):
1208
1212
            conf_option = conf_option + "-%s" % self.arch