summaryrefslogtreecommitdiff
path: root/doc/examples
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2005-12-22 09:21:45 +0000
committerMichael Vogt <michael.vogt@ubuntu.com>2005-12-22 09:21:45 +0000
commit9a97c512ec3e3bfd2b1df17b8ab350b79637780e (patch)
tree76f5ecb173958a33687e105de4758314a9dc4f8e /doc/examples
parent86878ca7de8c4b14da7e10a82b26905de80a6c98 (diff)
downloadpython-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.py8
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)