summaryrefslogtreecommitdiff
path: root/debian
AgeCommit message (Collapse)AuthorFilesLines
2009-07-20Merge from debian-sidJulian Andres Klode1-11/+29
2009-07-20* apt/progress/__init__.py:Michael Vogt1-2/+24
- 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
2009-07-20merged from lp:~speijnik/python-apt/debian-gsoc09Michael Vogt1-1/+1
2009-07-15Introduce new progress (base) classes in apt_pkg:Julian Andres Klode1-0/+3
- apt_pkg.AcquireProgress - apt_pkg.OpProgress
2009-07-15Simplify the whole building, build all Python versions with setup.pyJulian Andres Klode5-38/+8
2009-07-15debian/rules: Add --install-layout=deb, debian/control: XS-Python-Version >= 2.5Julian Andres Klode2-2/+3
2009-07-15Build-Depend on python-all-dev (>= 2.5.4-3), so we build for Python 2.6Julian Andres Klode2-3/+4
2009-07-15Upgrade to debhelper 7 and remove debian/tmp in python-apt.install, toJulian Andres Klode4-5/+7
work around a bug in debhelper.
2009-07-15python/python-apt.h: Introduce the C++ APIJulian Andres Klode4-0/+15
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.
2009-07-14python/configuration.cc: Unify all ↵Julian Andres Klode1-1/+2
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).
2009-07-13* aptsources/distro.py:Michael Vogt1-0/+5
- fix indent error that causes incorrect sources.list additons (LP: #372224)
2009-07-12python/acquire.cc: Fix segmentation faults, introduce PyAcquireObject.Julian Andres Klode1-1/+3
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.
2009-07-12python/hashes.cc: Introduce the Hashes class.Julian Andres Klode1-1/+2
The Hashes class is a function which calculates all supported hashes for one input. DebImg will use this for calculating the hashes of files.
2009-07-08python/pkgsrcrecords.cc: Unify dep handling -- part 2: ↵Julian Andres Klode1-1/+5
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.
2009-07-08python/apt_pkgmodule.cc: Unify dep handling -- part 1: parse_depends()Julian Andres Klode1-0/+4
apt_pkg.parse_[src_]depends() now use CompType instead of CompTypeDeb (i.e. < instead of <<) to match the interface of Version.depends_list_str.
2009-07-07Removed separate way of defining Py_ssize_t in progress.h. Now using Stephan Peijnik1-1/+1
method present in generic.h in progress.cc.
2009-07-07debian/control: Build-Depend on libapt-pkg-dev (>= 0.7.22~).Julian Andres Klode2-2/+3
2009-07-02merged from spMichael Vogt1-0/+1
2009-06-23python/configuration.cc: Make ConfigurationPtr,ConfigurationSub subclasses ↵Julian Andres Klode1-0/+1
of Configuration. This makes isinstance(apt_pkg.config, apt_pkg.Configuration) return True instead of False.
2009-06-23python/acquire.cc: Make AcquireFile a subclass of AcquireItemJulian Andres Klode1-0/+1
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.
2009-06-22debian/control: Update Standards-Version to 3.8.2Julian Andres Klode2-1/+2
2009-06-22debian/changelog: Add entry about the merge of 0.7.10.4Julian Andres Klode1-0/+1
2009-06-22python/cache.cc: Drop apt_pkg.Cache.open() and apt_pkg.Cache.close().Julian Andres Klode1-1/+3
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.
2009-06-22Add apt_pkg.DepCache.mark_auto() and apt.Package.mark_auto() methods toJulian Andres Klode1-1/+3
mark a package as automatically installed.
2009-06-21apt/cache.py: Correctly handle rootdir on second and later invocations of ↵Julian Andres Klode1-0/+2
open() (LP: #320665).
2009-06-15data/templates/Debian.info.in: Squeeze will be 6.0, not 5.1Julian Andres Klode1-0/+6
2009-06-15apt/cache.py: Provide broken_count, delete_count, install_count, keep_countJulian Andres Klode1-0/+2
properties (Closes: #532338)
2009-06-15Add support for Enhances as a dependency type (Closes: #416247)Julian Andres Klode1-0/+1
2009-06-15apt/progress/__init__.py: Check for EINTR in select (Closes: #499296)Julian Andres Klode1-1/+2
2009-06-15* python/progress.cc:Michael Vogt1-0/+5
- fix crash in RunSimpleCallback() * apt/cache.py: - when the cache is run with a alternative rootdir, create required dirs/files automatically
2009-06-14Merge version 0.7.10.4 from debian-sidJulian Andres Klode1-11/+21
2009-06-14apt/package.py: Return VersionList objects in Package.versions.Julian Andres Klode1-1/+3
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.
2009-06-12apt/progress.py: Extract the package name from the status message (Closes: ↵Julian Andres Klode1-0/+5
#532660)
2009-06-12Bugfix: Delete pointers correctly, fixing memory leaks. (LP: #370149)Julian Andres Klode1-2/+3
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.
2009-06-09Add apt_pkg.Policy class (Closes: #382725)Julian Andres Klode1-1/+2
2009-06-09Allow types providing __new__() to be subclassed.Julian Andres Klode1-1/+2
2009-06-08Add apt_pkg.HashString and apt_pkg.IndexRecords (Closes: #456141)Julian Andres Klode1-0/+6
2009-06-08merge with mvojak@debian.org1-0/+14
2009-06-08releasing version 0.7.10.4Michael Vogt1-1/+3
2009-06-07Update Debian mirrors. (Closes: #518071)Otavio Salvador1-0/+1
2009-06-07utils/get_debian_mirrors.py: updated to support current mirror page.Otavio Salvador1-0/+3
2009-06-05Set distribution to experimental.Julian Andres Klode1-2/+2
2009-06-05apt/package.py: Add Package.get_version() which returns a Version instanceJulian Andres Klode1-0/+4
for the given version string or None (Closes: #523998)
2009-06-05debian/control: Only recommend libjs-jquery (Closes: #527543).Julian Andres Klode2-4/+4
2009-05-18* debian/python-apt.doc-base: register the documentation with the doc-base ↵Stefano Zacchiroli2-0/+16
system (Closes: #525134)
2009-05-05* data/templates/Ubuntu.info.in:Michael Vogt1-0/+8
- updated for the new ubuntu karmic version
2009-05-05* apt/progress/__init__.py:Michael Vogt1-0/+14
- 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()
2009-04-24* debian/rules: Support multiple PY3K versions.Julian Andres Klode1-16/+25
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.
2009-04-24* debian/control: Do not require python >= 2.5, mistake in previous commit.Julian Andres Klode1-1/+1
2009-04-20* utils/migrate-0.8.py: Helper to check Python code for deprecated ↵Julian Andres Klode1-0/+3
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.