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 /doc/examples | |
| parent | 86878ca7de8c4b14da7e10a82b26905de80a6c98 (diff) | |
| download | python-apt-9a97c512ec3e3bfd2b1df17b8ab350b79637780e.tar.gz | |
* removed the fetchProgress from _fetchArchives() (no longer needed)
Diffstat (limited to 'doc/examples')
| -rwxr-xr-x[-rw-r--r--] | doc/examples/dependant-pkgs.py | 8 |
1 files changed, 4 insertions, 4 deletions
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) |
