| Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
|
|
|
|
collections.Mapping.
This works on Python 2.6 and newer and enhances the Record class with some new methods
on these platforms, e.g. keys().
|
|
This new property allows us to get the translated record. This was previously
done in 'summary', but because 'description' also uses translated descriptions,
the lookup has been moved in this property.
|
|
|
|
A new module, apt.deprecation, is introduced containing functions and
classes which assist in the deprecation.
The apt_pkg extension gets a new attribute, _COMPAT_0_7 which can be set
by defining COMPAT_0_7 at compile time (-DCOMPAT_0_7).
The names are changed, and compatibility functions are enabled if
bool(apt_pkg._COMPAT_0_7) == True, i.e. if the package has been built with
backward compatibility fixes.
This commit changes the apt and aptsources packages, the apt_pkg and
apt_inst extensions will be the next renames.
|
|
- Support assignments to the 'candidate' property of Package objects.
- Initial patch by Sebastian Heinlein
|
|
This is the first initial port to Python 3. The API is almost completely
identical to the one found in Python 2, except that functions working with
binary data require bytes (md5sum,sha1sum,sha256sum,Base64Encode).
Using setup3.py to install the modules will not work, because the apt package
still has to be converted to Python 3. For the package, we call 2to3-3.1 in
debian/rules to do this automatically.
|
|
|
|
Extended the documentation, renamed 'Coding for python-apt' to 'Contributing
to python-apt' and other stuff.
|
|
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.
|
|
None in the candidate property. (Closes: #523801)
|
|
one of the deprecated properties (e.g. candidateVersion) is
requested. (Closes: #523801)
|
|
|
|
This makes it easier to use e.g. pydoc,sphinx,pychecker, which use inspect the
classes and therefore also have to access the properties.
|
|
|
|
- debian/copyright: Switch to machine-interpretable copyright
- apt/*.py: Fix the copyright years and comments.
|
|
|
|
|
|
|
|
|
|
- Deprecate Package.candidate*() and Package.installed*(), except for
installedFiles.
- Provide Version.get_source() (LP: #118788)
|
|
_depcache, _records, _list - they add up to ~10mb for the full cache on my test system and all information is available via Package._pcache
|
|
|
|
|
|
|
|
- make sure to set the defaulttimeout back to the
original value (in getChangelog(), LP: #314212)
|
|
- fix bug in candidateInstalledSize property
* aptsources/distinfo.py:
- fix too restrictive mirror url check
* aptsources/distro.py:
- only add nearest_server and server to the mirrors if
they are defined
|
|
This commit includes multiple changes:
First of all, the code has been adjusted to follow PEP 8 and the documentation
has been improved.
Secondly, the Origin class has been moved out of the Package class into the
module, and its __repr__ has been changed.
Thirdly, the Record class has been enhances with some new methods, and the
attribute containing the string has been removed, as we can reproduce the
string using the TagSection in the _rec attribute. The methods added are
__contains__(), __iter__(), get() and iteritems().
Fourthly, the method getChangelog() has been fixed in some areas, especially
in the exception handling.
The method/property installedFiles() is now enclosing its file access into
a try/finally block.
All the testing code has been moved into a _test() function for now, until
the new testing functionality is implemented.
|
|
Use @property instead of x = property(x), where x is the function name.
|
|
|
|
|
|
- build html/ help of the apt and aptsources modules
into /usr/share/doc/python-apt/html
|
|
|
|
|
|
- do not return None in sourcePackageName (LP: #123062)
- add "SelState{Unknown,Install,Hold,DeInstall,Purge}" constants
|
|
|
|
|
|
|
|
|
|
|
|
|
|
replacing the ASCII art bullets by an unicode dot. This was implemented in several applications e.g. gnome-app-install, update-manager or packagekit. As a side effect it breaks the behavior of those.
|
|
- add "isAutoRemovable()" method
|
|
|
|
- fix apt.package.Dependency.relation initialization
|
|
- added Record class that can be accessed like a dictionary
and return it in candidateRecord and installedRecord
(thanks to Alexander Sack for discussing this with me)
* doc/examples/records.py:
- added example how to use the new Records class
|
|
|
|
|