From 9a97c512ec3e3bfd2b1df17b8ab350b79637780e Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Thu, 22 Dec 2005 09:21:45 +0000 Subject: * removed the fetchProgress from _fetchArchives() (no longer needed) --- apt/cache.py | 4 ++-- debian/changelog | 2 +- doc/examples/dependant-pkgs.py | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) mode change 100644 => 100755 doc/examples/dependant-pkgs.py diff --git a/apt/cache.py b/apt/cache.py index ed07f2c9..9a0ff96c 100644 --- a/apt/cache.py +++ b/apt/cache.py @@ -136,7 +136,7 @@ class Cache(object): raise IOError, errMsg return res - def _fetchArchives(self, fetcher, pm, fetchProgress): + def _fetchArchives(self, fetcher, pm): """ fetch the needed archives """ # get lock @@ -195,7 +195,7 @@ class Cache(object): fetcher = apt_pkg.GetAcquire(fetchProgress) while True: # fetch archives first - res = self._fetchArchives(fetcher, pm, fetchProgress) + res = self._fetchArchives(fetcher, pm) # then install res = self.installArchives(pm, installProgress) diff --git a/debian/changelog b/debian/changelog index d8a8527a..c421b58e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -8,7 +8,7 @@ python-apt (0.6.16) unstable; urgency=low now instead of a single one * apt_pkg.Cdrom.Add() returns a boolean now, CdromProgress has totalSteps - -- Michael Vogt Thu, 1 Dec 2005 14:01:39 +0100 + -- python-apt (0.6.15) unstable; urgency=low diff --git a/doc/examples/dependant-pkgs.py b/doc/examples/dependant-pkgs.py old mode 100644 new mode 100755 index 656e38bf..f36936a8 --- a/doc/examples/dependant-pkgs.py +++ b/doc/examples/dependant-pkgs.py @@ -20,13 +20,13 @@ for pkg in cache: if sys.argv[1] == tpkg.ParentPkg.Name: pkgs.add(pkg.name) -main = [] -universe = [] +main = set() +universe = set() for pkg in pkgs: if "universe" in cache[pkg].section: - universe.append(cache[pkg].sourcePackageName) + universe.add(cache[pkg].sourcePackageName) else: - main.append(cache[pkg].sourcePackageName) + main.add(cache[pkg].sourcePackageName) print "main:" print "\n".join(main) -- cgit v1.2.3