What’s New In python-apt 2.0¶
Changes since 1.8.
Added¶
The method
apt_pkg.TagSection.write()
has been addedThe attribute
apt_pkg.HashString.hashvalue
has been addedThe constructor
apt_pkg.AcquireFile
now accepts anapt_pkg.HashStringList
as the hash argument.The classes
apt_pkg.HashString
andapt_pkg.HashStringList
gained a newusable
property.
Removed¶
The methods called install_protect have been removed
The section attribute has been removed from
apt_pkg.Package
andapt.package.Package
The method
apt_pkg.rewrite_section()
has been removedThe attributes
apt_pkg.Hashes.md5
,apt_pkg.Hashes.sha1
,apt_pkg.Hashes.sha256
have been removedThe method
apt_pkg.Policy.get_match()
has been removed.The constructor
apt_pkg.AcquireFile
no 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.Package
instances.Instances of
apt_pkg.HashString
can now be compared for equalityapt.progress.base.InstallProgress
is now a context manager, use it in awith
statement to avoid leaking file descriptors.
Bug fixes¶
Fixed unterminated
char*
array inapt_pkg.TagRemove
constructor.