| Age | Commit message (Collapse) | Author | Files | Lines | |
|---|---|---|---|---|---|
| 2009-07-16 | python/acquire.cc: Add AcquireItem.mode | Julian Andres Klode | 1 | -1/+14 | |
| 2009-07-16 | python/acquire.cc: Introduce PyAcquireWorker_Type, make ↵ | Julian Andres Klode | 5 | -22/+112 | |
| PyAcquireItemDesc_Type contain a pointer. | |||||
| 2009-07-16 | python/python-apt: PyAcquireItem_Type, not PyAcquireItemType. | Julian Andres Klode | 1 | -1/+1 | |
| 2009-07-16 | apt/cache.py: Support apt_pkg.OpProgress() and use ↵ | Julian Andres Klode | 1 | -4/+8 | |
| apt.progress.text.OpProgress() | |||||
| 2009-07-16 | apt/progress/text.py: Introduce new progress classes for text. | Julian Andres Klode | 1 | -0/+122 | |
| These are based on the new classes in apt_pkg and work better, because they correctly clear the screen. | |||||
| 2009-07-16 | python/progress.cc: Make PyOpProgress::Update() behave more like OpTextProgress. | Julian Andres Klode | 1 | -16/+19 | |
| 2009-07-16 | python/opprogress.cc: Increase the reference count before returning values. | Julian Andres Klode | 1 | -0/+2 | |
| 2009-07-16 | python/progress.cc: Fix the types of the attributes. | Julian Andres Klode | 1 | -10/+10 | |
| 2009-07-16 | python/acquireprogress.cc: Check the arguments. | Julian Andres Klode | 1 | -15/+35 | |
| 2009-07-15 | python/progress.cc: Add support for PyAcquireProgress. | Julian Andres Klode | 1 | -4/+34 | |
| 2009-07-15 | python/acquire.cc: Add AcquireItemDesc. | Julian Andres Klode | 4 | -1/+81 | |
| 2009-07-15 | Introduce new progress (base) classes in apt_pkg: | Julian Andres Klode | 7 | -4/+393 | |
| - apt_pkg.AcquireProgress - apt_pkg.OpProgress | |||||
| 2009-07-15 | doc/client-example.cc: Make it a module AND an application. | Julian Andres Klode | 1 | -8/+30 | |
| You can now compile this as a module or as an application. The benefit is that the explained process is more like the one required for Python 3. | |||||
| 2009-07-15 | python/python-apt.h: Do not include apt-pkg/hashes.h. | Julian Andres Klode | 1 | -1/+0 | |
| Users of the API should include the bits themselves. We don't need to include them, because we only use macros. | |||||
| 2009-07-15 | setup.py: Add missing 'c' to configuration.cc | Julian Andres Klode | 1 | -1/+1 | |
| 2009-07-15 | AUTHORS: Add me. | Julian Andres Klode | 1 | -0/+1 | |
| 2009-07-15 | Remove configure.in | Julian Andres Klode | 1 | -34/+0 | |
| 2009-07-15 | Simplify the whole building, build all Python versions with setup.py | Julian Andres Klode | 9 | -182/+43 | |
| 2009-07-15 | po: Update template. | Julian Andres Klode | 1 | -6/+6 | |
| 2009-07-15 | debian/rules: Add --install-layout=deb, debian/control: XS-Python-Version >= 2.5 | Julian Andres Klode | 2 | -2/+3 | |
| 2009-07-15 | Build-Depend on python-all-dev (>= 2.5.4-3), so we build for Python 2.6 | Julian Andres Klode | 2 | -3/+4 | |
| 2009-07-15 | Upgrade to debhelper 7 and remove debian/tmp in python-apt.install, to | Julian Andres Klode | 4 | -5/+7 | |
| work around a bug in debhelper. | |||||
| 2009-07-15 | python/python-apt.h: Introduce the C++ API | Julian Andres Klode | 9 | -7/+360 | |
| 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-15 | python/hashstring.cc: Do not use const char*, but use char* with default to ↵ | Julian Andres Klode | 1 | -2/+2 | |
| NULL. | |||||
| 2009-07-14 | python/tag.cc: TagFileData is now subclassed from CppOwnedPyObject<pkgTagFile>. | Julian Andres Klode | 1 | -7/+8 | |
| 2009-07-14 | python/configuration.cc: Unify all ↵ | Julian Andres Klode | 4 | -119/+15 | |
| 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-14 | python/generic.h: Use Py_XINCREF instead of Py_INCREF in CppOwnedPyObject_NEW. | Julian Andres Klode | 1 | -3/+2 | |
| Reason: Owner may be NULL. | |||||
| 2009-07-14 | python/acquire.cc: Replace PyAcquireItem_ToCpp with acquireitem_tocpp. | Julian Andres Klode | 1 | -3/+3 | |
| 2009-07-14 | python/acquire.cc: Check that an owner exists in AcquireItemDealloc. | Julian Andres Klode | 1 | -0/+6 | |
| 2009-07-13 | doc/source/contributing.rst: List debian-experimental, fix highlighting. | Julian Andres Klode | 1 | -9/+19 | |
| 2009-07-13 | doc/source/contributing.rst: Add C++ Coding style guidelines. | Julian Andres Klode | 1 | -26/+164 | |
| These are the new C++ coding style guidelines, which are derived from PEP 7. | |||||
| 2009-07-13 | python: No zero-size arrays for char *kwlist[]. | Julian Andres Klode | 6 | -9/+9 | |
| 2009-07-13 | python/hashes.cc: Adapt to style guidelines. | Julian Andres Klode | 1 | -2/+2 | |
| 2009-07-13 | python/apt_pkgmodule.cc: Remove all dependendy type constants, and cleanup. | Julian Andres Klode | 1 | -87/+41 | |
| The dependency type constants have no use, because we do not export values anywhere. The cleanup moves all #ifdef COMPAT_0_7 together into one section. | |||||
| 2009-07-13 | python/apt_pkgmodule.cc: Fix build on Python 2.4 | Julian Andres Klode | 1 | -1/+1 | |
| 2009-07-13 | python/apt_pkgmodule.cc: Add function name to ParseDepends and friends. | Julian Andres Klode | 1 | -6/+7 | |
| 2009-07-13 | python/generic.h: Use PyBytes_AS_STRING instead of PyBytes_AsString in ↵ | Julian Andres Klode | 1 | -1/+2 | |
| PyUnicode_AsString. | |||||
| 2009-07-13 | python/apt_pkgmodule.cc, python/apt_instmodule.cc: Remove useless state. | Julian Andres Klode | 2 | -43/+13 | |
| This was copied over from "Porting Extension Modules to 3.0", and is not really needed. | |||||
| 2009-07-13 | python/apt_pkgmodule.cc: ParseDepends_old only needed in COMPAT_0_7. | Julian Andres Klode | 1 | -0/+2 | |
| 2009-07-13 | python: Rename all PyTypeObject's to conform to PEP 7. | Julian Andres Klode | 15 | -177/+177 | |
| This is the first step towards implementing coding guidelines for the C++ code and providing an usable C++ API. | |||||
| 2009-07-12 | python/acquire.cc: Fix segmentation faults, introduce PyAcquireObject. | Julian Andres Klode | 2 | -27/+73 | |
| 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-12 | apt/package.py: Adjust AcquireFile() usage to future changes. | Julian Andres Klode | 1 | -8/+9 | |
| The underlying C++ objects of the AcquireFile() objects are currently immortal. This should change at a later stage, to match the behavior of the C++ class. But AcquireItems needs to be fixed first to not segfault anymore. | |||||
| 2009-07-12 | python/hashes.cc: Introduce the Hashes class. | Julian Andres Klode | 6 | -8/+164 | |
| 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-12 | python/policy.cc: Disable Policy.read_pindir() on apt < 0.7.22. | Julian Andres Klode | 1 | -0/+4 | |
| 2009-07-12 | python/cdrom.cc: Remove PkgCdromStruct, use pkgCdrom directly. | Julian Andres Klode | 1 | -12/+6 | |
| 2009-07-12 | python/indexfile.cc: Deallocate the pointer correctly. | Julian Andres Klode | 1 | -2/+2 | |
| 2009-07-12 | python/pkgsrcrecords.cc: Do not delete the pkgIndexFile*, it is managed by ↵ | Julian Andres Klode | 1 | -1/+5 | |
| PkgSrcRecords::Parser. APT still has a bug which causes the index file to not be deleted, but we should prepare for the fix. | |||||
| 2009-07-12 | python/sourcelist.cc: Do not delete the pkgIndexFile*, it is managed elsewhere. | Julian Andres Klode | 1 | -1/+3 | |
| 2009-07-12 | python/metaindex.cc: Fix deletion of the IndexFile objects in ↵ | Julian Andres Klode | 1 | -2/+5 | |
| MetaIndex.index_files First of all, make the objects mortal by decreasing their refcount after adding them to the list. Secondly, make the objects owned by MetaIndex and thirdly, set NoDelete on them, because they are managed by metaIndex. | |||||
| 2009-07-12 | python/sourcelist.cc: Fix deletion of MetaIndex objects returned in ↵ | Julian Andres Klode | 1 | -2/+5 | |
| SourceList.list. First of all, make the objects mortal by decreasing their refcount after adding them to the list. Secondly, make the objects owned by SourceList and thirdly, set NoDelete on them, because they are managed by SourceList. | |||||
