summaryrefslogtreecommitdiff
path: root/python/pkgsrcrecords.cc
AgeCommit message (Collapse)AuthorFilesLines
2010-06-01revert commit 346 (this re-enable the deprecation warnings)Michael Vogt1-4/+3
2010-06-01* merge from debian bzr, remaining changes:Michael Vogt1-13/+38
- different mirror list * data/templates/gNewSense.info.in, data/templates/gNewSense.mirrors: - add gNewSense template and mirrors, thanks to Karl Goetz * apt/cache.py: - Make Cache.get_changes() much (~35x) faster (Closes: #578074). - Make Cache.req_reinstall_pkgs much faster as well. - Make Cache.get_providing_packages() about 1000 times faster. - Use has_versions and has_provides from apt_pkg.Package where possible. * apt/package.py: - Decode using utf-8 in installed_files (LP: #407953). - Fix fetch_source() to work when source name = binary name (LP: #552400). - Merge a patch from Sebastian Heinlein to make get_changelog() only check sources where source version >= binary version (Closes: #581831). - Add Version.source_version and enhance Sebastian's patch to make use of it, in order to find the best changelog for the package. * python: - Return bool instead of int to Python where possible, looks better. - Document every class, function, property. * python/cache.cc: - Check that 2nd argument to Cache.update() really is a SourceList object. - Fix PackageFile.not_automatic to use NotAutomatic instead of NotSource. - Add Package.has_versions to see which packages have at least one version, and Package.has_provides for provides. - Add rich compare methods to the Version object. * python/generic.cc: - Fix a memory leak when using old attribute names. - Map ArchiveURI property to archive_uri * python/progress.cc: - Do not pass arguments to InstallProgress.wait_child(). * doc: - Update the long documentation. * debian/control: - Change priority to standard, keep -doc and -dev on optional. * utils/migrate-0.8.py: - Open files in universal newline support and pass filename to ast.parse. - Add has_key to the list of deprecated functions. - Don't abort if parsing failed. - do not require files to end in .py if they are passed on the command line or if they contain python somewhere in the shebang line. * apt/cache.py: - make cache open silent by default (use apt.progress.base.OpProgress) * tests/data/aptsources_ports/sources.list: - fix ports test-data * tests/test_apt_cache.py: - add simple test for basic cache/dependency iteration
2010-04-21python: Commit documentation changes suggested by debian-l10n-english.Julian Andres Klode1-3/+3
2010-04-01python: Document every class, function, property.Julian Andres Klode1-12/+37
Finally, a complete reference to apt_pkg available via pydoc and __doc__ attributes.
2010-04-01python: Return bool instead of int to Python where possible, looks better.Julian Andres Klode1-1/+1
2010-03-29If PYTHON_APT_DEPRECATION_WARNINGS is unset, also disable theJulian Andres Klode1-3/+4
deprecation warnings in apt_pkg directly; and don't just disable any deprecation warning in apt/__init__.py (LP: #548623)
2010-02-27* python:Julian Andres Klode1-13/+1
- Handle deprecated attributes and methods in the tp_gettattro slot, this allows us to easily warn if a deprecated function is used.
2010-01-27Merge the CppOwnedPyObject C++ class into CppPyObject.Julian Andres Klode1-4/+4
2010-01-20Rename apt_pkg.PackageIndexFile to apt_pkg.IndexFile.Julian Andres Klode1-1/+1
2009-08-21Merge 0.7.13.0 from unstable.Julian Andres Klode1-1/+1
2009-08-21python/pkgsrcrecords.cc: Fix spelling error (begining should be beginning).Julian Andres Klode1-1/+1
2009-07-13python: Rename all PyTypeObject's to conform to PEP 7.Julian Andres Klode1-3/+3
This is the first step towards implementing coding guidelines for the C++ code and providing an usable C++ API.
2009-07-12python/pkgsrcrecords.cc: Do not delete the pkgIndexFile*, it is managed by ↵Julian Andres Klode1-1/+5
PkgSrcRecords::Parser. APT still has a bug which causes the index file to not be deleted, but we should prepare for the fix.
2009-07-08python/pkgsrcrecords.cc: Unify dep handling -- part 2: ↵Julian Andres Klode1-1/+50
SourceRecords.build_depends Change apt_pkg.SourceRecords.build_depends to match exactly the interface of Version.depends_list_str just with different keys (e.g. Build-Depends). + Closes: #468123 - there is no need anymore for binding CompType or CompTypeDeb, because we don't return integer values for CompType anymore.
2009-06-25python: Use PyVarObject_HEAD_INIT() instead of PyObject_HEAD_INIT().Julian Andres Klode1-4/+1
This is related to PEP 3123 and fixes some compiler warnings.
2009-06-25python: Fix some build warnings.Julian Andres Klode1-1/+0
2009-06-21python: Add DeprecationWarning to functions which were replaced by classes.Julian Andres Klode1-8/+3
2009-06-09Allow types providing __new__() to be subclassed.Julian Andres Klode1-1/+2
2009-06-05python/: Put all deprecated Get*() functions into #ifdef COMPAT_0_7.Julian Andres Klode1-1/+2
2009-06-04python/: Unify naming conventions for all new names.Julian Andres Klode1-1/+1
Unify all names to follow these rules: 1. Replace the first [A-Z] with the lowercase version [a-z] 2. Replace multiple [A-Z] with [A-Z][a-z] (one upper, remaining ones lowercase) 3. Replace all remaining [A-Z] with _[a-z] This brings us from 'FileName' to 'file_name' and from 'DescURI' to 'desc_uri'. We will at a later stage add some exceptions to this rule, like 'filename' instead of 'file_name', to improve readability.
2009-06-03python/: Convert most names to PEP8 naming conventions (except ↵Julian Andres Klode1-0/+15
Version,PackageFile,MetaIndex). On our way to close Bug#481061, this converts almost all names to PEP 8 naming conventions. Missing are now apt_pkg.Version, apt_pkg.PackageFile, apt_pkg.MetaIndex and apt.progress.*. In case of the missing apt_pkg classes, they are not converted yet because they do not use getset descriptors yet. apt.progress.* has not been converted yet because the extension interacts with it, and we first need to modify the extension to recognize the new names, as well as the old names (old applications shouldn't break).
2009-04-19* python/*.cc: Export all types and add a __new__() method to them.Julian Andres Klode1-1/+17
Some names may be changed before the release, but this is a good draft.
2009-04-15* Introduce support for Python 3 (Closes: #523645)Julian Andres Klode1-0/+2
This is the first initial port to Python 3. The API is almost completely identical to the one found in Python 2, except that functions working with binary data require bytes (md5sum,sha1sum,sha256sum,Base64Encode). Using setup3.py to install the modules will not work, because the apt package still has to be converted to Python 3. For the package, we call 2to3-3.1 in debian/rules to do this automatically.
2009-04-14* python/pkgsrcrecords.cc: Use GetSet properties for PkgSrcRecordsTypeJulian Andres Klode1-61/+117
This time, it is a bit more complicated because we have to raise an AttributeError when no package has been looked up.
2008-08-08Fix whitespace in changes from 0.7.7.Ben Finney1-0/+2
2008-07-18* python/pkgsrcrecords.cc:Michael Vogt1-0/+2
- add "Record" attribute to the PkgSrcRecord to access the full source record
2008-05-16Remove trailing whitespace.Ben Finney1-18/+18
2006-03-22* add PkgSrcRecords.Index to the codeMichael Vogt1-1/+3
2006-03-22* fixes for the pkgSrcRecords codeMichael Vogt1-3/+24
2005-08-08* always call Restart in srcrecords.LookupMichael Vogt1-0/+1
2005-08-08* support for srcrecords.Files addedMichael Vogt1-3/+19
2005-05-06* merged with matts mainlineMichael Vogt1-1/+1
Patches applied: * apt@packages.debian.org/python-apt--main--0--patch-9 Merge michael.vogt@ubuntu.com--2005/python-apt--pkgDepCache--0 * apt@packages.debian.org/python-apt--main--0--patch-10 Merge minor changes from michael.vogt@ubuntu.com--2005/python-apt--pkgDepCache--0 * michael.vogt@ubuntu.com--2005/python-apt--pkgDepCache--0--patch-16 * merged with Greek0@gmx.net--2005-main/python-apt--debian--0.6 * michael.vogt@ubuntu.com--2005/python-apt--pkgDepCache--0--patch-17 * python/pkgsrcrecords.cc: fix a refcount problem * michael.vogt@ubuntu.com--2005/python-apt--pkgDepCache--0--patch-18 * changed version to 0.6.11 * michael.vogt@ubuntu.com--2005/python-apt--pkgDepCache--0--patch-19 * build depends against python-dev (without a version). this will do the right thing on both debian and ubuntu * michael.vogt@ubuntu.com--2005/python-apt--pkgDepCache--0--patch-20 * made the "arch-build" target work again * michael.vogt@ubuntu.com--2005/python-apt--pkgDepCache--0--patch-21 * made arch-build work again (for real this time)
2005-05-03* merged with Greek0@gmx.net--2005-main, native apt interface added, fixed a ↵Michael Vogt1-2/+11
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
2005-04-13* build-depends added to PkgSrcRecords, example for build-depends addedMichael Vogt1-0/+16
2004-11-24* Fix broken object initialization in sourcelist.cc and...Arch Librarian1-7/+2
Author: mdz Date: 2003-12-26 17:04:22 GMT * Fix broken object initialization in sourcelist.cc and srcrecords.cc (Closes: #215792)
2004-11-24Initial support for accessing source package dataArch Librarian1-0/+118
Author: mdz Date: 2003-07-23 02:20:24 GMT Initial support for accessing source package data