summaryrefslogtreecommitdiff
path: root/python
AgeCommit message (Collapse)AuthorFilesLines
2009-04-14* python/depcache.cc: Use tp_methods and tp_getset for PkgDepCacheTypeJulian Andres Klode2-28/+50
2009-04-14* python/cache.cc: Add tp_getset and tp_methods to DependencyType.Julian Andres Klode2-24/+74
2009-04-14* python/cache.cc: Use tp_methods and tp_getset for PkgCacheTypeJulian Andres Klode2-29/+71
2009-04-14* python/acquire.cc, python/sourcelist.cc: Type cleanupJulian Andres Klode3-33/+34
Use GetSet for PkgSourceListType and remove tp_getattr from PkgAcquireFileType.
2009-04-14* Remove any trailing whitespaceJulian Andres Klode8-28/+28
2009-04-13* python/cdrom.cc, python/depcache.cc: Use tp_methods for Cdrom, ↵Julian Andres Klode4-34/+53
ProblemResolver, ActionGroup
2009-04-13* python/configuration.cc: Support the 'in' operator for ConfigurationJulian Andres Klode2-15/+58
Support the replacement of mapping.has_key() for Configuration,ConfigurationPtr and ConfigurationSub objects. This is implemented by extending the various types with the tp_as_sequence slot, which refers to a PySequenceMethods containing only this method. The CnfGetAttr() function has been removed and replaced by the use of the tp_method slot. This helps the py3k port because the previously used Py_FindMethod() is not avilable anymore. This completes the support of the 'in' operator in all python-apt objects, which makes it even easier to convert python-apt-using applications to py3k once python-apt supports it, as 2to3 converts 'm.has_key(k)' to 'k in m'. Also finalize the types in apt_pkgmodule.cc and add the new 'key in conf' description to the documentation.
2009-04-13* python/cache.cc: Add support for the Breaks fieldsJulian Andres Klode1-1/+1
This also fixes problems on packages with Breaks field, where the lookup of the field name leads to some unprintable characters (because the index exceeds the number of items).
2009-04-13* python/*.cc: Use PyObject_AsFileDescriptor instead of fileno(PyFile_AsFile)Julian Andres Klode4-20/+37
Replace support for file objects with a more generic support for any object providing a fileno() method and for file descriptors (integers). This also helps us to port to Python 3, where the previously used PyFile_ functions are not available anymore.
2009-04-13* apt/tag.cc: Rework TagFile using tp_methods and tp_getsetJulian Andres Klode2-17/+31
By using tp_methods and tp_getset instead of a function for tp_getattr, the resulting object is easier to understand and access to attributes and methods is faster. It also helps the port to Python 3, where Py_FindMethod does not exist anymore.
2009-04-13* python/tag.cc: Support 'key in mapping' for TagSectionsJulian Andres Klode2-16/+35
Support the replacement of mapping.has_key() for sections, and update the usage in apt/package.py and apt/debfile accordingly. This is implemented by extending the TagSecType with sequence methods, but only settings the contains method there. The TagSecGetAttr() function has been removed and replaced by the use of the tp_methods slot.
2009-03-03* python/cache.cc, tests/getcache_mem_corruption.py:Michael Vogt1-3/+15
- test if progress objects have the right methods and raise error if not (thanks to Emanuele Rocca) closes: #497049
2009-01-29* apt/cache.py:Michael Vogt3-0/+21
- when setting a alternative rootdir, read the config from it as well * python/configuration.cc, python/apt_pkgmodule.cc: - add apt_pkg.ReadConfigDir()
2009-01-11* Add support for PkgRecords.SHA256Hash (Closes: #456113)Julian Andres Klode1-0/+2
2009-01-11Merge Ben Finney's whitespace changes (Closes: #481563)Julian Andres Klode24-456/+456
2008-11-07python/acquire.cc (GetPkgAcqFile): Support DestDir and DestFilename.Michael Vogt3-5/+10
2008-10-22* python/metaindex.ccMichael Vogt1-0/+3
- fix crash when incorrect attribute is given
2008-10-06Test case and proposed fix for Debian bug #497049Emanuele Rocca1-3/+14
2008-09-18add "SelState{Unknown,Install,Hold,DeInstall,Purge}" constantMichael Vogt1-0/+6
2008-08-15* python/progress.cc:Michael Vogt1-2/+4
- when pulse() does not return a boolean assume "true" (thanks to Martin Pitt for telling me about the problem)
2008-08-08Fix whitespace in changes from 0.7.7.Ben Finney3-3/+19
2008-07-31* python/apt_instmodule.cc:Michael Vogt1-2/+2
- fix bug in Rootdir cwd code
2008-07-31* python/apt_instmodule.cc:Michael Vogt1-3/+10
- do not change working dir in debExtractArchive() (LP: #184093)
2008-07-31fix GetCandidateVer() reporting incorrect versions afterMichael Vogt1-2/+4
SetCandidateVer() was used. Thanks to Julian Andres Klode for the test-case (LP: #237372)
2008-07-30* python/cache.cc:Michael Vogt1-1/+1
- fix crash if Ver.PriorityType() returns NULL
2008-07-21* data/templates/Debian.info.in:Emanuele Rocca1-0/+5
- s/MatchUri/MatchURI/. Thanks, Gustavo Noronha Silva (closes: #487673) * python/cache.cc: - Throw an exception rather than segfaulting when GetCache() is called before InitSystem() (closes: #369147)
2008-07-18* python/pkgsrcrecords.cc:Michael Vogt1-0/+2
- add "Record" attribute to the PkgSrcRecord to access the full source record
2008-07-04* tests/test_hashsums.py:Michael Vogt1-0/+1
- add tests for the hashsum code
2008-07-04* python/apt_pkgmodule.cc:Michael Vogt1-3/+11
- fix bug in hashsum calculation when the original string contains \0 charackters (thanks to Celso Providelo and Ryan Hass for the test-case) LP: #243630
2008-05-16Remove trailing whitespace.Ben Finney24-456/+456
2008-02-18* python/apt_pkgmodule.cc:Michael Vogt1-0/+5
- add InstState{Ok,ReInstReq,Hold,HoldReInstReq} constants * apt/cache.py: - add reqReinstallPkgs property that lists all packages in ReInstReq or HoldReInstReq
2008-02-14* python/sourcelist.cc:Michael Vogt1-3/+3
- support GetIndexes() GetAll argument to implement something like --print-uris
2008-02-11* python/pkgrecords.cc:Michael Vogt1-0/+2
- export the Homepage field
2008-01-18* python/tar.cc:Michael Vogt1-0/+2
- fix .lzma extraction (thanks to bigjools)
2008-01-07update to latest ListUpdate()Michael Vogt1-1/+2
2008-01-04* use the new CacheFile::ListUpdate() codeMichael Vogt1-41/+8
* add example in doc/examples/update.py
2007-12-04merged from the ubuntu branchMichael Vogt1-1/+1
2007-11-29* python/tag.ccMichael Vogt1-5/+2
- support "None" as default in ParseSection(control).get(field, default), LP: #44470
2007-11-23* python/depcache.cc:Michael Vogt1-5/+20
- be more threading friendly
2007-11-23* python/progress.cc:Michael Vogt1-2/+9
- fix refcount problem in OpProgress - fix refcount problem in FetchProgress - fix refcount problem in CdromProgress
2007-09-04* python/metaindex.cc:Michael Vogt4-2/+97
- added support for the metaIndex objects * python/sourceslist.cc: - support new "List" attribute that returns the list of metaIndex source entries
2007-08-28* python/string.cc:Michael Vogt1-1/+1
- fix overflow in SizeToStr()
2007-08-03* aptsources/distro.py:Michael Vogt1-2/+0
- throw NoDistroTemplateException if not distribution template can be found * NMU * Fix version to not use CPU and OS since it's not available on APT anymore (closes: #435653, #435674)
2007-07-30* apt/debfile.py:Michael Vogt1-1/+30
- added wrapper around apt_inst.debExtract() - support dictionary like access * python/apt_instmodule.cc: - added arCheckMember()
2007-07-25* apt/package.py:Michael Vogt1-1/+1
* apt/cache.py: * python/indexfile.cc: - increase str buffer in PackageIndexFileRepr
2007-06-11* build against the new aptMichael Vogt1-0/+15
* support for new "aptsources" pythn module (thanks to Sebastian Heinlein) * merged support for translated package descriptions * merged support for automatic removal of unused dependencies * merged http://glatzor.de/bzr/python-apt/sebi: - this means that the new aptsources modules is available * support translated pacakge descriptions * support automatic dependency information * python/depcache.cc: - "IsGarbage()" method added (to support auto-mark)
2007-06-10* merged translated package descriptions branchMichael Vogt1-0/+69
2007-06-10* merged automaitc removal of unused dependenciesMichael Vogt3-2/+91
branch * update build-depends
2007-05-23* python/pkgrecords.cc:Michael Vogt1-0/+2
- added SourceVer
2007-05-21* merged http://glatzor.de/bzr/python-apt/sebi:Michael Vogt1-0/+15
- this means that the new aptsources modules is available