Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2015-07-05 | Merge git://anonscm.debian.org/apt/python-apt | Igor Pashev | 25 | -1111/+502 | |
Conflicts: debian/changelog python/apt_pkgmodule.cc | |||||
2015-06-11 | python/tarfile.cc: LFS: Handle too large file | Julian Andres Klode | 1 | -7/+31 | |
Handle both file sizes larger than SIZE_MAX and allocation failures when reading the data of a tarmember. If using the go() function with a callback, pass None as the data parameter for files that are too large. For extractdata, raise a MemoryError if the file too extract is too large. Also check for an existing error first in extractdata, before raising a new one. Test the whole thing on 32-bit platforms with a sample deb that contains a zeroed file that is 5GB large (compressed using xz at level 1 to a few kb). | |||||
2015-06-10 | Acquire: Document that items may have transient errors on run() success | Julian Andres Klode | 1 | -4/+5 | |
If run() succeeded, items may still have transient errors, like a Not Found error. Closes: #680997 | |||||
2015-06-10 | python/arfile.cc: LFS: Use long long instead of long for file sizes | Julian Andres Klode | 1 | -3/+3 | |
This should make large files in ar archives work. See Bug: #742885 | |||||
2015-06-10 | python/arfile.cc: Do not allow files larger than SIZE_MAX to be mapped | Julian Andres Klode | 1 | -1/+13 | |
Also catch failed allocations, in case size is still too large. This prepares for large file support, see Bug#742885 | |||||
2015-06-10 | apt_pkg.Package: Drop the unset 'auto' attribute | Julian Andres Klode | 1 | -4/+0 | |
If somebody uses that, it could assume that no package is auto removable, because the attribute is always 0. So let's just remove that instead of having crazy code working the way it's not intended. Closes: #565364 | |||||
2015-06-10 | TagFile: Provide close() and context manager | Julian Andres Klode | 1 | -0/+58 | |
This is mostly meant to be used with tag files that are opened with a path, rather than a file object. Closes: #748922 | |||||
2015-06-10 | python/cache.cc: Handle deprecation of pkgCache::PkgIterator::Section() | Julian Andres Klode | 1 | -6/+12 | |
Ignore the deprecation from the C++ compiler and generate a warning for the Python interpreter. Also, remove the section from the representation of the package. | |||||
2015-05-22 | rename "md5" keyword argument in AcquireFile() to "hash" and add backward ↵ | Michael Vogt | 1 | -9/+26 | |
compatiblity | |||||
2015-05-07 | Add MULTI_ARCH_NO constant and deprecate MULTI_ARCH_NONE | Michael Vogt | 1 | -1/+3 | |
Thanks to Johannes Schauer closes: #782802 | |||||
2014-11-06 | Add binding for apt_pkg.maybe_open_clear_signed_file() | Michael Vogt | 1 | -0/+23 | |
2014-11-06 | add apt_pkg.sha512sum() | Michael Vogt | 1 | -2/+48 | |
2014-10-14 | python/tarfile.cc: use long long in Process() for APT >= 4.14 | Michael Vogt | 1 | -1/+10 | |
The pkgDirStream::Process() signature has changed in apt and is using a long long now for Size and Pos. | |||||
2014-09-30 | Embed changelog entry date and time instead of build date and time | Julian Andres Klode | 1 | -2/+7 | |
This makes reproducible builds possible. For non-package builds, simply use the start of the Unix time. Also make sure that all time values are in the UTC timezone. Closes: #762674 | |||||
2014-09-03 | fix tests | Michael Vogt | 1 | -1/+1 | |
2014-09-02 | python/tag.cc: ensure that the final \n is there when duplicating section data | Michael Vogt | 1 | -4/+7 | |
2014-06-10 | libapt uses pkgSourceRecords::Step() too | Michael Vogt | 1 | -2/+2 | |
2014-06-10 | add apt_pkg.SourceRecords.step() to all steping through all SrcRecords | Michael Vogt | 1 | -0/+24 | |
2014-06-10 | Revert "Merge remote-tracking branch 'mvo/feature/srcrec-enum' into debian/sid" | Michael Vogt | 2 | -26/+1 | |
This reverts commit 1b6b123a052ca2d53e90b62da09ce300d701265a, reversing changes made to 9de6a183f09f0d0adbcc5817872c5a0024f5ef47. | |||||
2014-06-10 | Merge remote-tracking branch 'mvo/feature/srcrec-enum' into debian/sid | Michael Vogt | 2 | -1/+26 | |
Conflicts: debian/control | |||||
2014-06-09 | rename apt_pkg.SourceRecords.next() to apt_pkg.SourceRecords.step() to avoid ↵ | Michael Vogt | 1 | -5/+5 | |
confusion with python iterators | |||||
2014-06-09 | Add apt_pkg.SourceRecords.next() to step through all SrcRecords | Michael Vogt | 1 | -0/+24 | |
2014-04-25 | Add support for build profiles | Johannes Schauer | 1 | -5/+6 | |
Closes: 744243 | |||||
2014-03-22 | python/tag.cc: Ignore missing 'encoding' attribute in file objects | Julian Andres Klode | 1 | -0/+2 | |
In case the encoding attribute does not exist, Python sets an exception. We must thus clear the exception, otherwise it might be raised at some later point in the code. | |||||
2014-03-17 | Support all compressors for data.tar/control.tar (Closes: #718330) | Julian Andres Klode | 1 | -27/+45 | |
This makes our support very flexible, and open for future additions of new compression algorithms. debfile_extract_tar() is almost identical to ExtractTarMember() of apt's debDebFile. | |||||
2014-03-16 | python/progress.cc: Remove invalid checks for mixedCase methods | Julian Andres Klode | 1 | -6/+3 | |
They are not working, because they set an exception if the mixedCase name is missing. | |||||
2014-03-16 | python/progress.cc: Fix InstallProgress to set child_pid (LP: #1177720) | Julian Andres Klode | 1 | -0/+3 | |
We do not wait for a child at all otherwise. | |||||
2014-01-27 | python/generic.h: Fix MkPyNumber to work if char is unsigned. | Julian Andres Klode | 1 | -1/+1 | |
We currently consider two cases "unsigned char" and "char". This works as long as "char" is signed, but this is not guaranteed. Change "char" to "signed char" instead. | |||||
2014-01-14 | python/pkgmanager.cc: Do not create temporary CppPyRef | Julian Andres Klode | 1 | -1/+1 | |
Instead of creating a CppPyRef with the only purpose of destroying it, just decrement the reference count. Reported-by: cppcheck | |||||
2014-01-06 | Unify list of comparison type values everywhere | Julian Andres Klode | 1 | -1/+2 | |
They are now ordered and include the != and < operators in all cases. | |||||
2013-10-23 | python/progress.cc: (scan-build): Fix some uninitialized values | Julian Andres Klode | 1 | -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-23 | python/policy.cc: (scan-build): Fix a dead assignment | Julian Andres Klode | 1 | -2/+2 | |
We need to use else if, otherwise the first cases are not handled at all. | |||||
2013-10-23 | python/apt_instmodule.cc: Make RETURN(x) be return on Python 2 | Julian Andres Klode | 1 | -1/+1 | |
This fixes a small compiler notice. | |||||
2013-10-23 | python/arfile.cc: (C++11) Explicitly cast unsigned long to time_t in {} | Julian Andres Klode | 1 | -1/+2 | |
According to gcc, the expression would be ill-formed in C++11 otherwise. | |||||
2013-10-23 | python/cache.cc: Remove a check for an unsigned long value < 0 | Julian Andres Klode | 1 | -1/+1 | |
This is impossible. | |||||
2013-10-23 | python/depcache.cc: Add more error handling to PkgDepCacheCommit | Julian Andres Klode | 1 | -1/+1 | |
It returned false, but should have returned NULL after handling errors. | |||||
2013-10-23 | python/{depcache.cc,string.cc}: Ignore deprecation warnings for some calls | Julian Andres Klode | 3 | -0/+9 | |
Those functions are deprecated in APT, but we still need to provide them for backwards compatibility. | |||||
2013-10-23 | python/*.cc: Get rid of the easy-to-replace deprecated APT functions | Julian Andres Klode | 3 | -5/+7 | |
We cannot get rid of the InstallProtect and StrToTime calls for backwards compatibility, but let's drop the others. | |||||
2013-10-21 | python/cache.cc: Set NoDelete=true when creating Policy, fixes segfault in ↵ | Julian Andres Klode | 1 | -2/+6 | |
destructor | |||||
2013-10-15 | python/apt_pkgmodule.cc: Document second parameter of parse_{,src_}depends | Julian Andres Klode | 1 | -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-14 | python/indexrecords.cc: IndexRecords.load() needs to accept bytes as well | Julian Andres Klode | 1 | -2/+2 | |
2013-10-08 | python/generic.cc: Move PyApt_Filename::init here | Julian Andres Klode | 2 | -21/+24 | |
2013-10-08 | python/apt_pkgmodule.cc: Fix documentation of version_compare (Closes: #680891) | Julian Andres Klode | 1 | -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-08 | apt_pkg: Support paths supplied as bytes objects (See: #680971) | Julian Andres Klode | 9 | -26/+31 | |
We should be done now. DO NOT MERGE | |||||
2013-10-08 | PyApt_Filename: Add return value to assignment operator | Julian Andres Klode | 1 | -2/+2 | |
2013-10-08 | apt_inst: Support paths supplied as bytes objects (Closes: #680971) | Julian Andres Klode | 2 | -30/+33 | |
2013-10-08 | python/generic.h: Introduce a PyApt_Filename class | Julian Andres Klode | 1 | -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-11 | Completely remove deprecated stuff | Julian Andres Klode | 1 | -2/+0 | |
2013-09-11 | Remove old API compatibility C++ support code | Julian Andres Klode | 17 | -945/+0 | |
2013-08-31 | Use HAVE_OPEN_MEMSTREAM | Igor Pashev | 3 | -0/+8 | |