| Age | Commit message (Collapse) | Author | Files | Lines | |
|---|---|---|---|---|---|
| 2009-07-24 | python/cache.cc: Fix segfault if Pkg->Section == NULL. | Julian Andres Klode | 1 | -14/+15 | |
| 2009-07-24 | python/apt_pkgmodule.cc: Move all constants here. | Julian Andres Klode | 3 | -43/+35 | |
| Now the constants are accessible from the types, and not only from instances. | |||||
| 2009-07-24 | utils/doclint.py: Add a script to check the documentation. | Julian Andres Klode | 1 | -0/+77 | |
| 2009-07-24 | python/generic.h: Do not deallocate the temporary bytes object in ↵ | Julian Andres Klode | 1 | -5/+1 | |
| PyUnicode_AsString. | |||||
| 2009-07-24 | python/python-apt.h: Fix PyCdrom_FromCpp to use pkgCdrom, not pkgCdrom*. | Julian Andres Klode | 1 | -1/+1 | |
| 2009-07-24 | python/acquire.cc: Adjust coding style. | Julian Andres Klode | 1 | -212/+234 | |
| There were two different coding styles in this file, which was a bit confusing. | |||||
| 2009-07-24 | python/cdrom.cc: Adjust to new coding style and add docstrings. | Julian Andres Klode | 1 | -115/+128 | |
| 2009-07-24 | python/hashstring.cc: Make hashtype a descriptor, adjust coding style. | Julian Andres Klode | 1 | -26/+28 | |
| 2009-07-23 | doc/source: Big documentation reorganisation. | Julian Andres Klode | 26 | -177/+440 | |
| Due to the new C++ API and because I wanted to include some tutorials, the documentation is now seperated into 4 sections: library => Documentation of modules. tutorials => Tutorials for using python-apt and contributing whatsnew => Release notes c++ => Documentation,Tutorials for the C++ API This commit also includes a new overview page, like the Python documentation. | |||||
| 2009-07-23 | python/configuration: Hack-in unicode character support in parse_commandline(). | Julian Andres Klode | 1 | -0/+4 | |
| 2009-07-23 | python/cdrom.cc: Do not check arguments in PkgCdromNew. | Julian Andres Klode | 2 | -5/+1 | |
| 2009-07-23 | tests: Prefix all docstring with the name of the file. | Julian Andres Klode | 4 | -18/+19 | |
| 2009-07-22 | python: 2nd part of the acquire fixes (one PyObject per C++ object). | Julian Andres Klode | 5 | -43/+54 | |
| 2009-07-22 | python: First step of fixing acquire stuff. | Julian Andres Klode | 6 | -316/+451 | |
| Basically, we only want to have on PyAcquireItem per pkgAcquire::Item, and one PyAcquireItemDesc per pkgAcquire::ItemDesc. Therefore, we store them so we can return them at a later time. | |||||
| 2009-07-22 | python/python-apt.h: Don't use Py_TYPE(op), but op->op_type. | Julian Andres Klode | 1 | -31/+31 | |
| The Py_TYPE macro does not exist in Python < 2.6 and is not documented. | |||||
| 2009-07-21 | apt/progress/old.py: Replace OpProgress.sub_op with OpProgress.subop. | Julian Andres Klode | 1 | -3/+3 | |
| 2009-07-21 | python/progress.cc: Introduce setattr to reduce code duplication. | Julian Andres Klode | 2 | -83/+55 | |
| This way, we can replace stuff like PyObject *o = PyBuildValue("i", 0); PyObject_SetAttrString(callbackInst, "attribute", o); Py_DECREF(o) with setattr(callbackInst,"attribute","i",0); | |||||
| 2009-07-21 | python/progress.cc: Fix problems with threads. | Julian Andres Klode | 1 | -3/+11 | |
| 2009-07-21 | python/acquire.cc: Hack support for Acquire object created by PyAcquire_FromCpp. | Julian Andres Klode | 1 | -3/+10 | |
| 2009-07-21 | python/acquire.cc: Replace items vector with item_map. | Julian Andres Klode | 1 | -47/+54 | |
| 2009-07-21 | python/python-apt.h: Export PyAcquireWorker and fix some problems. | Julian Andres Klode | 2 | -3/+10 | |
| 2009-07-21 | python/lock.cc: Implement apt_pkg.FileLock(). | Julian Andres Klode | 5 | -0/+141 | |
| This is yet another context manager, this time for locking files. It can be used multiple times and features an internal counter. | |||||
| 2009-07-21 | python/lock.cc: Fix refcount in systemlock_enter and behavior of ↵ | Julian Andres Klode | 1 | -2/+12 | |
| systemlock_exit. | |||||
| 2009-07-20 | doc/source/whatsnew/0.8.0.rst: Document apt_pkg.SystemLock. | Julian Andres Klode | 1 | -2/+7 | |
| 2009-07-20 | python/lock.cc: Introduce apt_pkg.SystemLock context manager. | Julian Andres Klode | 4 | -1/+126 | |
| This is the new alternative to pkgsystem_lock() and pkgsystem_unlock(), and is the recommended one. | |||||
| 2009-07-20 | Merge from debian-sid | Julian Andres Klode | 5 | -27/+125 | |
| 2009-07-20 | * apt/progress/__init__.py: | Michael Vogt | 9 | -21/+266 | |
| - 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-20 | merged from lp:~speijnik/python-apt/debian-gsoc09 | Michael Vogt | 4 | -6/+17 | |
| 2009-07-19 | apt/progress/text.py: Always call methods of the parent class. | Julian Andres Klode | 1 | -1/+10 | |
| 2009-07-19 | apt/progress/text.py: Add some docstrings. | Julian Andres Klode | 1 | -0/+5 | |
| 2009-07-19 | python/progress.cc: Use PyObject_CallObject instead of PyEval_CallObject. | Julian Andres Klode | 1 | -4/+3 | |
| 2009-07-19 | setup.py: Compile cdromprogress.cc. | Julian Andres Klode | 1 | -1/+1 | |
| 2009-07-19 | po: Update the po files to include the new strings. | Julian Andres Klode | 73 | -578/+4258 | |
| 2009-07-19 | apt/cdrom.py: Make apt.cdrom.Cdrom a subclass of apt_pkg.Cdrom. | Julian Andres Klode | 1 | -10/+7 | |
| 2009-07-19 | python/cdrom.cc: New style ident returns None on failure. | Julian Andres Klode | 1 | -10/+24 | |
| Returning a tuple (bool, str) is useless when one can just return a string or None. | |||||
| 2009-07-19 | apt/progress/text.py: Introduce CdromProgress. | Julian Andres Klode | 1 | -4/+27 | |
| 2009-07-19 | python/progress.cc: CdromProgress.ask_cdrom_name() shall return None on failure. | Julian Andres Klode | 2 | -15/+23 | |
| 2009-07-19 | python/apt_pkgmodule.cc: Fix apt_pkg.gettext to not ignore second parameter. | Julian Andres Klode | 1 | -2/+1 | |
| 2009-07-19 | python/cdromprogress.cc: Add apt_pkg.CdromProgress. | Julian Andres Klode | 7 | -22/+137 | |
| 2009-07-17 | aptsources/distinfo.py: Fix split_url() on Python 3. | Julian Andres Klode | 1 | -2/+4 | |
| 2009-07-17 | tests: Import more tests from tests/old. | Julian Andres Klode | 7 | -34/+38 | |
| 2009-07-17 | python/cache.cc: Only support new OpProgress() objects in apt_pkg.Cache(). | Julian Andres Klode | 1 | -1/+9 | |
| 2009-07-17 | tests/test_cache_invocation.py: Move here from old. | Julian Andres Klode | 2 | -24/+32 | |
| 2009-07-17 | tests/test_hashes.py: Add some more tests, especially about unicode. | Julian Andres Klode | 1 | -0/+20 | |
| 2009-07-17 | tests: First work on the new testsuite. | Julian Andres Klode | 24 | -0/+124 | |
| The module tests.test_all will run all available tests. Each test placed herein must be using unittest and provide at least 1 test case. It must be prefixed with test_. | |||||
| 2009-07-17 | apt: Use apt_pkg.gettext instead of Python's gettext. | Julian Andres Klode | 6 | -25/+7 | |
| 2009-07-17 | python/apt_pkgmodule.cc: Introduce apt_pkg.gettext(). | Julian Andres Klode | 1 | -0/+25 | |
| Python's gettext() ignores setlocale() which causes a strange behavior because the values received from apt-pkg respect setlocale(). We circumvent this problem by calling the C version of gettext(). This is also much faster. | |||||
| 2009-07-17 | apt/progress/text.py: Improve final summary. | Julian Andres Klode | 1 | -14/+22 | |
| 2009-07-17 | apt/__init__.py, apt/__cache__.py: Improve python-apt localization. | Julian Andres Klode | 2 | -4/+9 | |
| 2009-07-17 | apt/progress/text.py: Cleanup, add i18n (and try apt translation if we have ↵ | Julian Andres Klode | 1 | -40/+52 | |
| none). | |||||
