Commit 440aba4b authored by Julian Andres Klode's avatar Julian Andres Klode

Document whatsnew in 1.6 and 1.7

parent f3b8d901
Pipeline #10405 passed with stages
in 11 minutes and 21 seconds
What's New In python-apt 1.6
============================
Changed
-------
* Methods of :class:`apt_pkg.DepCache` now raise an exception if passed
objects belonging to a different cache, in order to avoid segmentation
faults or wrong behavior.
.. versionchanged:: 1.6.1
Starting with 1.6.1 and 1.7~alpha1, the exception raised is
:class:`apt_pkg.CacheMismatchError`, and :class:`apt.cache.Cache` will
automatically remap open packages and versions to a new cache.
* Initial type hints
* :attr:`apt_pkg.SourceRecords.files` now returns a
:class`apt_pkg.SourceRecordsFile` object with getters instead of
a tuple (but it also emulates the tuple).
Bugfixes
--------
* Various other fixes for segmentation faults
* apt/auth.py: Protect against race with gpg when removing tmpdir
(Closes: #871585)
What's New In python-apt 1.7
============================
Changed
--------
* Starting with 1.6.1 and 1.7~alpha1, the exception raised when
passing objects of a different cache to :class:`apt_pkg.DepCache`
is :class:`apt_pkg.CacheMismatchError`, and :class:`apt.cache.Cache` will
automatically remap open packages and versions to a new cache.
Added
------
* The class :class:`apt_pkg.PackageRecords` can now lookup custom fields
using ``records[key]`` and ``key in records``.
* All code is now statically typed. Some methods from :mod:`apt_pkg`
and :mod:`apt_inst` might still be missing or more strict than
necessary.
* A new method :meth:`apt.cache.Cache.fix_broken` has been added.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment