What’s New In python-apt 1.9¶
This is a development series, and there will be more API changes in point releases.
Added¶
- The method
apt_pkg.TagSection.write()has been added - The attribute
apt_pkg.HashString.hashvaluehas been added - The constructor
apt_pkg.AcquireFilenow accepts anapt_pkg.HashStringListas the hash argument. - The classes
apt_pkg.HashStringandapt_pkg.HashStringListgained a newusableproperty.
Removed¶
- The methods called install_protect have been removed
- The section attribute has been removed from
apt_pkg.Packageandapt.package.Package - The method
apt_pkg.rewrite_section()has been removed - The attributes
apt_pkg.Hashes.md5,apt_pkg.Hashes.sha1,apt_pkg.Hashes.sha256have been removed - The method
apt_pkg.Policy.get_match()has been removed. - The constructor
apt_pkg.AcquireFileno longer takes an md5 argument.
Changed¶
- In
apt_pkg.SourceRecords, the tuple view of files now always contains None where it previously contained the md5 hash. - The method
apt_pkg.Policy.get_priority()no longer acceptsapt_pkg.Packageinstances. - Instances of
apt_pkg.HashStringcan now be compared for equality apt.progress.base.InstallProgressis now a context manager, use it in awithstatement to avoid leaking file descriptors.
Bug fixes¶
- Fixed unterminated
char*array inapt_pkg.TagRemoveconstructor.