summaryrefslogtreecommitdiff
path: root/python
AgeCommit message (Collapse)AuthorFilesLines
2014-06-09Add apt_pkg.SourceRecords.next() to step through all SrcRecordsMichael Vogt1-0/+24
2013-10-23python/progress.cc: (scan-build): Fix some uninitialized valuesJulian Andres Klode1-3/+3
We need to set those pointers to NULL, as the functions that may write to them do not always write to them and we would read garbage in such a case.
2013-10-23python/policy.cc: (scan-build): Fix a dead assignmentJulian Andres Klode1-2/+2
We need to use else if, otherwise the first cases are not handled at all.
2013-10-23python/apt_instmodule.cc: Make RETURN(x) be return on Python 2Julian Andres Klode1-1/+1
This fixes a small compiler notice.
2013-10-23python/arfile.cc: (C++11) Explicitly cast unsigned long to time_t in {}Julian Andres Klode1-1/+2
According to gcc, the expression would be ill-formed in C++11 otherwise.
2013-10-23python/cache.cc: Remove a check for an unsigned long value < 0Julian Andres Klode1-1/+1
This is impossible.
2013-10-23python/depcache.cc: Add more error handling to PkgDepCacheCommitJulian Andres Klode1-1/+1
It returned false, but should have returned NULL after handling errors.
2013-10-23python/{depcache.cc,string.cc}: Ignore deprecation warnings for some callsJulian Andres Klode3-0/+9
Those functions are deprecated in APT, but we still need to provide them for backwards compatibility.
2013-10-23python/*.cc: Get rid of the easy-to-replace deprecated APT functionsJulian Andres Klode3-5/+7
We cannot get rid of the InstallProtect and StrToTime calls for backwards compatibility, but let's drop the others.
2013-10-21python/cache.cc: Set NoDelete=true when creating Policy, fixes segfault in ↵Julian Andres Klode1-2/+6
destructor
2013-10-15python/apt_pkgmodule.cc: Document second parameter of parse_{,src_}dependsJulian Andres Klode1-4/+8
The functions apt_pkg.parse_depends and apt_pkg.parse_src_depends take a second positional argument telling it whether to strip multi-arch strings or not.
2013-10-14python/indexrecords.cc: IndexRecords.load() needs to accept bytes as wellJulian Andres Klode1-2/+2
2013-10-08python/generic.cc: Move PyApt_Filename::init hereJulian Andres Klode2-21/+24
2013-10-08python/apt_pkgmodule.cc: Fix documentation of version_compare (Closes: #680891)Julian Andres Klode1-2/+3
This was supposed to be fixed some time ago in mvo's bzr branch but it seems that it did not survive the git migration.
2013-10-08apt_pkg: Support paths supplied as bytes objects (See: #680971)Julian Andres Klode9-26/+31
We should be done now. DO NOT MERGE
2013-10-08PyApt_Filename: Add return value to assignment operatorJulian Andres Klode1-2/+2
2013-10-08apt_inst: Support paths supplied as bytes objects (Closes: #680971)Julian Andres Klode2-30/+33
2013-10-08python/generic.h: Introduce a PyApt_Filename classJulian Andres Klode1-0/+60
On Python 3, we need to encode filenames. We could use PyUnicode_FSConverter but this introduces unneeded complexity in all callees, and is only available in Python 3.1 anyway.
2013-09-11Completely remove deprecated stuffJulian Andres Klode1-2/+0
2013-09-11Remove old API compatibility C++ support codeJulian Andres Klode17-945/+0
2013-08-26python/arfile.cc: Fixup the formattingJulian Andres Klode1-16/+15
2013-08-05coverity fixesMichael Vogt4-4/+4
2012-10-23build fixes for python3.3Michael Vogt1-0/+4
2012-10-15merge from the debian-sid branchMichael Vogt4-11/+25
2012-10-15* python/tag.cc:Michael Vogt1-2/+2
- make TagSecString_FromStringAndSize, TagSecString_FromString static, thanks to jcristau
2012-10-10python/progress.cc: check result of Py_BuildValue() tooMichael Vogt1-0/+2
2012-10-02merge patch from Barry to fix #1030278Michael Vogt1-8/+20
2012-10-01python/cache.cc: PkgCacheGetIsMultiArch(): Return calculatedJames Hunt1-1/+1
value rather than a random one.
2012-08-14* python/cache.cc:Michael Vogt1-0/+8
- add "Codename" to PackageFile object
2012-06-19python/acquire.cc: Use pkgAcquire::Setup() to setup the acquire classJulian Andres Klode1-5/+4
and handle errors from this (Closes: #629624)
2012-06-17* python/tag.cc:Julian Andres Klode1-2/+2
- Correctly handle file descriptor 0 aka stdin (Closes: #669458)
2012-06-17* python/configuration.cc:Julian Andres Klode1-2/+5
- Handle the use of "del" on configuration values. Those are represented by calling the setter with NULL, which we did not handle before, causing a segmentation fault (Closes: #661062)
2012-06-15Merge patch from Colin Watson to handle non-UTF8 tag files inJulian Andres Klode1-29/+99
Python 3, by using bytes instead of str when requested; and document this in the RST documentation (Closes: #656288)
2012-04-17merged lp:~aptdaemon-developers/python-apt/fix-cannot-locate-file with a ↵Michael Vogt1-2/+5
slighly different fix
2012-04-17* python/cache.cc:Michael Vogt1-1/+3
- ensure that pkgApplyStatus is called when the cache is opened (thanks to Sebastian Heinlein for finding this bug), LP: #659438
2012-04-16Fix apt_pkg.DepCache.init() documentation which still states that theSebastian Heinlein1-2/+1
method would be called automatically on construction
2012-03-05python/apt_pkgmodule.cc: Fix apt_pkg.Dependency.TYPE_RECOMMENDS, had ↵Julian Andres Klode1-1/+1
Suggests value previously
2012-02-06python/tag.cc: make it build with older apt versions tooMichael Vogt1-0/+5
2012-02-06python/tag.cc: cleanupMichael Vogt1-8/+4
2012-02-03* python/tag.cc, tests/test_tagfile.py:Michael Vogt1-9/+35
- add support a filename argument in apt_pkg.TagFile() (in addition to the file object currently supported)
2012-01-30REFACTOR: python/policy.cc update error to include PackageFile() tooMichael Vogt1-1/+1
2012-01-30GREEN: policy should suppors PkgVerFile nowMichael Vogt1-0/+3
2012-01-30RED: policy should support verfileMichael Vogt1-0/+7
2011-11-10fix build against apt in experimentalMichael Vogt12-25/+31
2011-10-21python/apt_pkgmodule.cc: improve docstringMichael Vogt1-1/+2
2011-10-21* python/apt_pkgmodule.cc:Michael Vogt1-0/+27
- add apt_pkg.get_architectures() call
2011-08-01* merged from the debian/sid bzr branchMichael Vogt3-27/+39
* Breaks: debsecan (<< 0.4.15) [not only << 0.4.14] (Closes: #629512) * python/arfile.cc: - use APT::Configuration::getCompressionTypes() instead of duplicating the supported methods here * tests/test_debfile.py: - add test for raise on unknown data.tar.xxx * tests/test_aptsources_ports.py, tests/test_aptsources.py: - use tmpdir during the tests to fix test failure with apt from experimental * Upload to unstable * Increase Breaks for update-notifier to 0.99.3debian9 * utils/get_debian_mirrors.py: Adjust for new Alioth SCM urls * debian/control: Standards-Version 3.9.2 * Fix Lintian overrides * Fix spelling errors reported by Lintian (sep[a->e]rated, overrid[d]en) * po/urd.po: Remove, ur.po is the correct file * debian/source/format: Add, set it to "3.0 (native)" * Fix get_changelog in Python 3 (Closes: #626532) * apt/package.py: fix a few typos [formated->formatted] (Closes: #597054) * doc/source/tutorials/contributing.rst: minor improvements (Closes: #625225) - one typo [2to => 2to3], one broken link [pep8.py link] * Esperanto (Closes: #626430)
2011-07-13* python/arfile.cc:Michael Vogt1-20/+32
- use APT::Configuration::getCompressionTypes() instead of duplicating the supported methods here * tests/test_debfile.py: - add test for raise on unknown data.tar.xxx
2011-07-13* add missing bits for the xz compression support for the Michael Vogt1-0/+2
0.7 API, thanks to Colin Watson for the fix! (LP: #805389) * backport xz compression support the debian-sid bzr branch (LP: #805389) * apt/utils.py: - fix end date calculation for releases in june (LP: #602469) * apt/package.py: - Fix the changelog downloading if there are several source package versions available which provide the binary (LP: #377535). See http://bugs.debian.org/581831 for further details * debian/control: - update Vcs-Bzr location
2011-05-27Fix spelling errors reported by Lintian (sep[a->e]rated, overrid[d]en)Julian Andres Klode2-7/+7