From 6a7d3c4fdea2f85b100bbccaabb41637450e78e6 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Thu, 12 Jan 2006 11:37:45 +0100 Subject: * the log includes timing information as well now * give a start/end markeer for the obsoletes calculation to see how long it takes --- DistUpgrade/DistUpgradeControler.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'DistUpgrade/DistUpgradeControler.py') diff --git a/DistUpgrade/DistUpgradeControler.py b/DistUpgrade/DistUpgradeControler.py index 22f74842..58d8fb16 100644 --- a/DistUpgrade/DistUpgradeControler.py +++ b/DistUpgrade/DistUpgradeControler.py @@ -388,6 +388,7 @@ class DistUpgradeControler(object): # before) to be deleted. make sure to not delete any foreign # (that is, not from ubuntu) packages remove_candidates = now_obsolete - self.obsolete_pkgs + logging.debug("Start checking for obsolete pkgs") for pkgname in remove_candidates: if pkgname not in self.foreign_pkgs: # this is a delete candidate, only actually delete, @@ -398,8 +399,9 @@ class DistUpgradeControler(object): for pkg in self.cache.getChanges(): if pkg.name not in remove_candidates or \ pkg.name in self.foreign_pkgs: - logging.debug("'%s' scheduled for remove but in remove_candiates, skipping", pkg.name) + logging.debug("'%s' scheduled for remove but not in remove_candiates, skipping", pkg.name) self.cache.restore_snapshot() + logging.debug("Finish checking for obsolete pkgs") if self._view.confirmChanges(_("Remove obsolete Packages?"), self.cache.getChanges(), 0): fprogress = self._view.getFetchProgress() -- cgit v1.2.3