summaryrefslogtreecommitdiff
path: root/tests/pkgsrcrecords.py
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2009-01-11 19:30:07 +0100
committerJulian Andres Klode <jak@debian.org>2009-01-11 19:30:07 +0100
commitb237760c6d7009f9833b86e6dbfc3cbf6d059977 (patch)
tree19dd8f4f11b1c004a7f9bbb2b9e9f545d0ed2492 /tests/pkgsrcrecords.py
parent31cdfa2e20361f76f6e011bbcdad19f9daa1f58f (diff)
parent7b14352c54b7acbf2a68240fa960e188c6e8742a (diff)
downloadpython-apt-b237760c6d7009f9833b86e6dbfc3cbf6d059977.tar.gz
Merge Ben Finney's whitespace changes (Closes: #481563)
Diffstat (limited to 'tests/pkgsrcrecords.py')
-rw-r--r--tests/pkgsrcrecords.py30
1 files changed, 17 insertions, 13 deletions
diff --git a/tests/pkgsrcrecords.py b/tests/pkgsrcrecords.py
index 06c4a1ef..77670540 100644
--- a/tests/pkgsrcrecords.py
+++ b/tests/pkgsrcrecords.py
@@ -7,19 +7,23 @@
import apt_pkg
import sys
+
def main():
- apt_pkg.init()
- cache = apt_pkg.GetCache()
- i=0
- print "Running PkgSrcRecords test on all packages:"
- for x in cache.Packages:
- i += 1
- src = apt_pkg.GetPkgSrcRecords()
- if src.Lookup(x.Name):
- #print src.Package
- pass
- print "\r%i/%i=%.3f%% " % (i,cache.PackageCount, (float(i)/float(cache.PackageCount)*100)),
+ apt_pkg.init()
+ cache = apt_pkg.GetCache()
+ i=0
+ print "Running PkgSrcRecords test on all packages:"
+ for x in cache.Packages:
+ i += 1
+ src = apt_pkg.GetPkgSrcRecords()
+ if src.Lookup(x.Name):
+ #print src.Package
+ pass
+ print "\r%i/%i=%.3f%% " % (
+ i, cache.PackageCount,
+ (float(i) / float(cache.PackageCount) * 100)),
+
if __name__ == "__main__":
- main()
- sys.exit(0)
+ main()
+ sys.exit(0)