summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2009-07-17python/apt_pkgmodule.cc: Introduce apt_pkg.gettext().Julian Andres Klode1-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-17apt/progress/text.py: Improve final summary.Julian Andres Klode1-14/+22
2009-07-17apt/__init__.py, apt/__cache__.py: Improve python-apt localization.Julian Andres Klode2-4/+9
2009-07-17apt/progress/text.py: Cleanup, add i18n (and try apt translation if we have ↵Julian Andres Klode1-40/+52
none).
2009-07-17apt/progress: Fix apt.progress with COMPAT_0_7Julian Andres Klode2-13/+6
2009-07-17python: Use PyString_FromFormat instead of snprintf.Julian Andres Klode6-54/+40
2009-07-17doc/source/conf.py: Ignore failures to import apt_pkg.Julian Andres Klode1-6/+15
2009-07-17apt/progress/text.py: Don't display complete items in AcquireProgress.fetchJulian Andres Klode1-0/+3
2009-07-16python/progress.cc: Set members directly, without using Python.Julian Andres Klode3-24/+36
2009-07-16apt/progress/text.py: Limit number of displayed items by display size.Julian Andres Klode1-2/+8
2009-07-16apt/progress/text.py: Print status messages.Julian Andres Klode1-7/+6
2009-07-16python/progress.cc: Call fail() on AcquireProgress objects.Julian Andres Klode1-0/+5
2009-07-16apt/progress/gtk2.py: Replace apt.progress with apt.progress.old.Julian Andres Klode1-12/+13
2009-07-16apt/progress: Move apt.progress to apt.progress.oldJulian Andres Klode5-435/+464
2009-07-16apt/progress/text.py: 'Sync' AcquireProgress with the one used for apt-get.Julian Andres Klode1-18/+93
2009-07-16python/progress.h: Add Py{Acquire,Op}ProgressObject.Julian Andres Klode4-55/+71
2009-07-16python/acquire.cc, python/progress.cc: More fixes.Julian Andres Klode2-5/+43
2009-07-16python/acquire.cc: Add AcquireItem.modeJulian Andres Klode1-1/+14
2009-07-16python/acquire.cc: Introduce PyAcquireWorker_Type, make ↵Julian Andres Klode5-22/+112
PyAcquireItemDesc_Type contain a pointer.
2009-07-16python/python-apt: PyAcquireItem_Type, not PyAcquireItemType.Julian Andres Klode1-1/+1
2009-07-16apt/cache.py: Support apt_pkg.OpProgress() and use ↵Julian Andres Klode1-4/+8
apt.progress.text.OpProgress()
2009-07-16apt/progress/text.py: Introduce new progress classes for text.Julian Andres Klode1-0/+122
These are based on the new classes in apt_pkg and work better, because they correctly clear the screen.
2009-07-16python/progress.cc: Make PyOpProgress::Update() behave more like OpTextProgress.Julian Andres Klode1-16/+19
2009-07-16python/opprogress.cc: Increase the reference count before returning values.Julian Andres Klode1-0/+2
2009-07-16python/progress.cc: Fix the types of the attributes.Julian Andres Klode1-10/+10
2009-07-16python/acquireprogress.cc: Check the arguments.Julian Andres Klode1-15/+35
2009-07-15python/progress.cc: Add support for PyAcquireProgress.Julian Andres Klode1-4/+34
2009-07-15python/acquire.cc: Add AcquireItemDesc.Julian Andres Klode4-1/+81
2009-07-15Introduce new progress (base) classes in apt_pkg:Julian Andres Klode7-4/+393
- apt_pkg.AcquireProgress - apt_pkg.OpProgress
2009-07-15doc/client-example.cc: Make it a module AND an application.Julian Andres Klode1-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-15python/python-apt.h: Do not include apt-pkg/hashes.h.Julian Andres Klode1-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-15setup.py: Add missing 'c' to configuration.ccJulian Andres Klode1-1/+1
2009-07-15AUTHORS: Add me.Julian Andres Klode1-0/+1
2009-07-15Remove configure.inJulian Andres Klode1-34/+0
2009-07-15Simplify the whole building, build all Python versions with setup.pyJulian Andres Klode9-182/+43
2009-07-15po: Update template.Julian Andres Klode1-6/+6
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 Klode9-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-15python/hashstring.cc: Do not use const char*, but use char* with default to ↵Julian Andres Klode1-2/+2
NULL.
2009-07-14python/tag.cc: TagFileData is now subclassed from CppOwnedPyObject<pkgTagFile>.Julian Andres Klode1-7/+8
2009-07-14python/configuration.cc: Unify all ↵Julian Andres Klode4-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-14python/generic.h: Use Py_XINCREF instead of Py_INCREF in CppOwnedPyObject_NEW.Julian Andres Klode1-3/+2
Reason: Owner may be NULL.
2009-07-14python/acquire.cc: Replace PyAcquireItem_ToCpp with acquireitem_tocpp.Julian Andres Klode1-3/+3
2009-07-14python/acquire.cc: Check that an owner exists in AcquireItemDealloc.Julian Andres Klode1-0/+6
2009-07-13doc/source/contributing.rst: List debian-experimental, fix highlighting.Julian Andres Klode1-9/+19
2009-07-13doc/source/contributing.rst: Add C++ Coding style guidelines.Julian Andres Klode1-26/+164
These are the new C++ coding style guidelines, which are derived from PEP 7.
2009-07-13python: No zero-size arrays for char *kwlist[].Julian Andres Klode6-9/+9
2009-07-13python/hashes.cc: Adapt to style guidelines.Julian Andres Klode1-2/+2