| Age | Commit message (Collapse) | Author | Files | Lines |
|
- apt_pkg.AcquireProgress
- apt_pkg.OpProgress
|
|
|
|
|
|
|
|
work around a bug in debhelper.
|
|
The C++ API provides support for creating Python objects from C++ objects
given by pointer or reference (depending on the implementation of the Python
object) and for retrieving the underlying C++ object from the Python object
and for checking the type of the Python object.
|
|
Configuration,ConfigurationPtr,ConfigurationSub into one type.
This makes the whole API easier. The disadvantage is that we require 8 bytes (??) more per
object for the owner object pointer, which is NULL for most cases (the only exception being
objects created by Configuration.sub_tree).
|
|
Make AcquireItem objects raise ValueError instead of segfaulting when the Acquire()
object is shut down or the main object (e.g. AcquireFile) is deallocated.
This is implemented by using a vector of the AcquireItem objects, and setting
AcquireItem->Object = NULL, when the memory 'Object' previously pointed to is
going to be deleted.
|
|
The Hashes class is a function which calculates all supported hashes for
one input. DebImg will use this for calculating the hashes of files.
|
|
SourceRecords.build_depends
Change apt_pkg.SourceRecords.build_depends to match exactly the interface of
Version.depends_list_str just with different keys (e.g. Build-Depends).
+ Closes: #468123 - there is no need anymore for binding CompType or
CompTypeDeb, because we don't return integer values for CompType
anymore.
|
|
apt_pkg.parse_[src_]depends() now use CompType instead of CompTypeDeb
(i.e. < instead of <<) to match the interface of Version.depends_list_str.
|
|
|
|
of Configuration.
This makes isinstance(apt_pkg.config, apt_pkg.Configuration) return True
instead of False.
|
|
Generalized the code a bit, so we can now access the various attributes
of AcquireItem in the AcquireFile (pkgAcqFile is a subclass of
pkgAcquire::Item).
This will allow us to implement a raw object with a single pointer to
an Item later, which we will need for the new progress interface.
|
|
|
|
|
|
Drop these functions, because they cause segfaults and memory leaks. To
replace this functionality, simply create/delete a Cache object. This
way, reference counting can work.
|
|
mark a package as automatically installed.
|
|
open() (LP: #320665).
|
|
properties (Closes: #532338)
|
|
|
|
|
|
|
|
VersionList objects provide the same features as sequences (they
are even derived from collections.Sequence in Python 2.6 and newer),
but also provide a mapping like interface.
They are also more efficient than lists because Version objects are
only created when they are accessed.
|
|
#532660)
|
|
We previously called the destructor of the pointer. This resulted in no
object using pointers being deallocated.
This patch introduces CppDeallocPtr() and CppOwnedDeallocPtr() which do
the same as the other CppDealloc() and CppOwnedDealloc(), but use 'delete'
on the pointer instead of the deconstructor.
Furthermore, this patch also changes AcquireFile to be a CppOwnedPyObject,
owned by the Acquire object. Without this change, deleting the Acquire
object would cause a crash when AcquireFile is deallocated.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for the given version string or None (Closes: #523998)
|
|
|
|
system (Closes: #525134)
|
|
- updated for the new ubuntu karmic version
|
|
- add update_status_full() that takes file_size/partial_size as
additional callback arguments
- add pulse_items() that takes a addtional "items" tuple that
gives the user full access to the individual items that are
fetched
* python/progress.cc:
- low level code for update_status_full and pulse_items()
|
|
Introduce PY3K_VERSIONS, a list of all py3k versions the package should
be built for. The default is to build for the currently installed versions.
Introduce 2TO3_VERSION to select a 2to3 version which will convert the
python code to python 3. Points to the latest version by default.
|
|
|
|
functions, attributes, etc.
Has to be run from the python-apt source tree, but can be used for all Python code using
python-apt. The output may not be completely correct, but false positives are better than
not checking the code.
|
|
|
|
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().
|
|
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.
|
|
This is the first pre-release of python-apt 0.8. It is completely backward
compatible (even on Python 3), API changes will appear in 0.7.91.
|
|
|
|
- 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.
|
|
Only create Package objects when they are requested, do not keep them in
a dict. Saves 10MB for 25,000 packages on my machine.
The set holds the names of all packages which have at least one version,
and the WeakValueDictionary() holds weak references to created Package
objects.
This way accessing the same package two times should return the same object,
kept by the WeakValueDictionary().
|