| Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
|
|
|
|
Use GetSet for PkgSourceListType and remove tp_getattr from
PkgAcquireFileType.
|
|
|
|
ProblemResolver, ActionGroup
|
|
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.
|
|
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).
|
|
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.
|
|
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.
|
|
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.
|
|
- test if progress objects have the right methods
and raise error if not (thanks to Emanuele Rocca)
closes: #497049
|
|
- when setting a alternative rootdir, read the
config from it as well
* python/configuration.cc, python/apt_pkgmodule.cc:
- add apt_pkg.ReadConfigDir()
|
|
|
|
|
|
|
|
- fix crash when incorrect attribute is given
|
|
|
|
|
|
- when pulse() does not return a boolean assume "true"
(thanks to Martin Pitt for telling me about the problem)
|
|
|
|
- fix bug in Rootdir cwd code
|
|
- do not change working dir in debExtractArchive() (LP: #184093)
|
|
SetCandidateVer() was used. Thanks to Julian Andres Klode for
the test-case (LP: #237372)
|
|
- fix crash if Ver.PriorityType() returns NULL
|
|
- 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)
|
|
- add "Record" attribute to the PkgSrcRecord to access the
full source record
|
|
- add tests for the hashsum code
|
|
- 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
|
|
|
|
- add InstState{Ok,ReInstReq,Hold,HoldReInstReq} constants
* apt/cache.py:
- add reqReinstallPkgs property that lists all packages in
ReInstReq or HoldReInstReq
|
|
- support GetIndexes() GetAll argument to implement
something like --print-uris
|
|
- export the Homepage field
|
|
- fix .lzma extraction (thanks to bigjools)
|
|
|
|
* add example in doc/examples/update.py
|
|
|
|
- support "None" as default in
ParseSection(control).get(field, default), LP: #44470
|
|
- be more threading friendly
|
|
- fix refcount problem in OpProgress
- fix refcount problem in FetchProgress
- fix refcount problem in CdromProgress
|
|
- added support for the metaIndex objects
* python/sourceslist.cc:
- support new "List" attribute that returns the list of
metaIndex source entries
|
|
- fix overflow in SizeToStr()
|
|
- 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)
|
|
- added wrapper around apt_inst.debExtract()
- support dictionary like access
* python/apt_instmodule.cc:
- added arCheckMember()
|
|
* apt/cache.py:
* python/indexfile.cc:
- increase str buffer in PackageIndexFileRepr
|
|
* 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)
|
|
|
|
branch
* update build-depends
|
|
- added SourceVer
|
|
- this means that the new aptsources modules is available
|