| Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
- 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()
- better threading support
* aptsources/distro.py:
- fix indent error that causes incorrect sources.list additons
(LP: #372224)
* python/progress.cc:
- fix crash in RunSimpleCallback()
* apt/cache.py:
- when the cache is run with a alternative rootdir, create
required dirs/files automatically
|
|
|
|
- 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).
|
|
- fix indent error that causes incorrect sources.list additons
(LP: #372224)
|
|
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.
|
|
method present in generic.h in progress.cc.
|
|
|
|
|
|
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)
|
|
|
|
|
|
- fix crash in RunSimpleCallback()
* apt/cache.py:
- when the cache is run with a alternative rootdir, create
required dirs/files automatically
|
|
|
|
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.
|