~dpm/ubuntu/lucid/update-manager/bug-537277

« back to all changes in this revision

Viewing changes to UpdateManager/Core/MetaRelease.py

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt, Michael Vogt, Wesley Schwengle, Dustin Kirkland, Jonathan Riddell
  • Date: 2010-03-08 20:58:44 UTC
  • Revision ID: james.westby@ubuntu.com-20100308205844-y47e225am3aujmwr
Tags: 1:0.133
[ Michael Vogt ]
* UpdateManager/Core/MetaRelease.py:
  - allow upgrade from unsupported version to unsupported version
* DistUpgrade/removal_blacklist.cfg:
  - allow removal of update-manager-kde
* check-new-release-gtk:
  - fixes in the gtk release upgrade check
* DistUpgrade/xorg_fix_proprietary.py:
  - if /etc/X11/XF86Config-4 is found on upgrade, rename it to
    "XF86Config-4.obsolete"
  - write log to "/var/log/dist-upgrade/xorg_fixup.log"
* do-release-upgrade, check-new-release:
  - implemented "check-releae-upgrade" as symlink to do-release-upgrade
    and automatically run with "--check-dist-upgrade-only" when called
    as c-r-u
  - add --quiet option to do-release-upgrade
* debian/update-manager-core.links:
  - install /usr/lib/update-manager/check-new-release as symlink to
    do-release-upgrade -c

[ Wesley Schwengle ]
* Check for release upgrade is now also possible with do-release-upgrade
  command: do-release-upgrade -c. (LP: #415026)
* Added --version/-V to do-release-upgrade (similar to update-manager)

[ Dustin Kirkland ]
* debian/91-release-upgrade, debian/update-manager-core.install,
  - some users are complaining of long login times due to the release
    check requiring network connectivity; this information clearly doesn't
    change as frequently as the user logging in, so maintain a cache file
    in /var/lib, display it if it's populated, but otherwise, update it in
    the background if its either missing or the file is older than a day
    old, LP: #522452

[ Jonathan Riddell ]
* Do not allow for the removal of update-manager-kde, we do want it after all

Show diffs side-by-side

added added

removed removed

Lines of Context:
212
212
            #sys.stderr.write("current dist not found in meta-release file\n")
213
213
            return False
214
214
 
215
 
        # then see what we can upgrade to (only upgrade to supported dists)
 
215
        # then see what we can upgrade to 
216
216
        upgradable_to = ""
217
217
        for dist in dists:
218
 
            if dist.date > current_dist.date and dist.supported == True: 
 
218
            if dist.date > current_dist.date:
219
219
                upgradable_to = dist
220
220
                self._debug("new dist: %s" % upgradable_to)
221
221
                break
276
276
        except (urllib2.URLError, httplib.BadStatusLine), e:
277
277
            self._debug("result of meta-release download: '%s'" % e)
278
278
            if os.path.exists(self.METARELEASE_FILE):
 
279
                self._debug("reading file '%s'" % self.METARELEASE_FILE)
279
280
                self.metarelease_information=open(self.METARELEASE_FILE,"r")
280
281
        # now check the information we have
281
282
        if self.metarelease_information != None: