diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2005-12-22 09:21:45 +0000 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2005-12-22 09:21:45 +0000 |
| commit | 9a97c512ec3e3bfd2b1df17b8ab350b79637780e (patch) | |
| tree | 76f5ecb173958a33687e105de4758314a9dc4f8e | |
| parent | 86878ca7de8c4b14da7e10a82b26905de80a6c98 (diff) | |
| download | python-apt-9a97c512ec3e3bfd2b1df17b8ab350b79637780e.tar.gz | |
* removed the fetchProgress from _fetchArchives() (no longer needed)
| -rw-r--r-- | apt/cache.py | 4 | ||||
| -rw-r--r-- | debian/changelog | 2 | ||||
| -rwxr-xr-x[-rw-r--r--] | doc/examples/dependant-pkgs.py | 8 |
3 files changed, 7 insertions, 7 deletions
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 <michael.vogt@ubuntu.com> 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 index 656e38bf..f36936a8 100644..100755 --- 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) |
