diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2005-05-03 16:25:44 +0000 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2005-05-03 16:25:44 +0000 |
| commit | 52ecc81517a1fa9748d04f0c0d05ce8396233b71 (patch) | |
| tree | c8957577c5016af06dcd5c130f01834d69f27f2b /tests | |
| parent | 5483ca175e5aa2b7de55cb0cea69546d2ccd2cd5 (diff) | |
| download | python-apt-52ecc81517a1fa9748d04f0c0d05ce8396233b71.tar.gz | |
* merged with Greek0@gmx.net--2005-main, native apt interface added, fixed a refcount problem, added tests/ directory
* apt/package.py, apt/__init__.py:
- started a native python interface that will wrap the uglier
bits of python-apt in the future
* tests/pkgsrcrecords.py:
- started a test directory
* python/pkgsrcrecords.cc:
- fixed a refcount problem
- merged with Greek0s tree
Patches applied:
* Greek0@gmx.net--2005-main/python-apt--debian--0.6--base-0
tag of apt@packages.debian.org/python-apt--main--0--patch-8
* Greek0@gmx.net--2005-main/python-apt--debian--0.6--patch-1
Minor typo fix in debian/rules
* Greek0@gmx.net--2005-main/python-apt--debian--0.6--patch-2
Typo fix in depcache.cc which caused wrong function to be called
* Greek0@gmx.net--2005-main/python-apt--debian--0.6--patch-3
Improved CppPyObject, leading to a better PkgDepCacheStruct
* Greek0@gmx.net--2005-main/python-apt--debian--0.6--patch-4
Improved build system
* Greek0@gmx.net--2005-main/python-apt--debian--0.6--patch-5
Restored the old tar.cc to work with the older apt in debian again
* Greek0@gmx.net--2005-main/python-apt--debian--0.6--patch-6
Fix for Debian #304296 (Segfault in CppOwnedDealloc)
* Greek0@gmx.net--2005-main/python-apt--debian--0.6--patch-7
Fix for Debian #304903 (FD leak)
* Greek0@gmx.net--2005-main/python-apt--debian--0.6--patch-8
Fixed the compilation error introduced in patch-6
* Greek0@gmx.net--2005-main/python-apt--debian--0.6--patch-9
New debian/changelog from Debians python-apt 0.6.10
* Greek0@gmx.net--2005-main/python-apt--debian--0.6--patch-10
Minor changes to make the packages lintian/linda clean
* apt@packages.debian.org/python-apt--main--0--patch-8
Merge michael.vogt@ubuntu.com--2005/python-apt--pkgDepCache--0
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/pkgsrcrecords.py | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/pkgsrcrecords.py b/tests/pkgsrcrecords.py new file mode 100644 index 00000000..dc4881dd --- /dev/null +++ b/tests/pkgsrcrecords.py @@ -0,0 +1,25 @@ +#!/usr/bin/env python2.4 +# +# Test for the PkgSrcRecords code +# it segfaults for python-apt < 0.5.37 +# + +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(cache) + 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) |
