~ubuntu-branches/ubuntu/intrepid/update-manager/intrepid

« back to all changes in this revision

Viewing changes to DistUpgrade/DistUpgradeCache.py

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt
  • Date: 2006-05-19 00:04:02 UTC
  • Revision ID: james.westby@ubuntu.com-20060519000402-m0hhn2k0hd13d1s0
Tags: 0.42.2ubuntu17
* debian/control:
  - depend on later python-apt (#45325)
* SoftwareProperties/SoftwareProperties.py:
  - fix key updating after import (ubuntu #44927)
* UpdateManager/UpdateManager.py:
  - remove debug output

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
        self.config = DistUpgradeConfig()
18
18
        self.metapkgs = self.config.getlist("Distro","MetaPkgs")
19
19
 
20
 
        # turn on debuging
21
 
        apt_pkg.Config.Set("Debug::pkgProblemResolver","true")
22
 
        fd = os.open("/var/log/dist-upgrade-apt.log", os.O_RDWR|os.O_CREAT|os.O_TRUNC)
23
 
        os.dup2(fd,1)
24
 
        os.dup2(fd,2)
25
 
 
26
20
        # a list of regexp that are not allowed to be removed
27
21
        self.removal_blacklist = []
28
22
        for line in open("removal_blacklist.txt").readlines():
39
33
        pm.GetArchives(fetcher, self._list, self._records)
40
34
        return fetcher.FetchNeeded
41
35
    @property
 
36
    def additionalRequiredSpace(self):
 
37
        """ get the size of the additonal required space on the fs """
 
38
        return self._depcache.UsrSize
 
39
    @property
42
40
    def isBroken(self):
43
41
        """ is the cache broken """
44
42
        return self._depcache.BrokenCount > 0