summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2013-10-23debian: Upgrade to debhelper 9 (and dpkg-buildflags)Julian Andres Klode3-4/+4
This gives us some more hardening, amongst other things.
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-23data/templates/Debian.info.in: Change wheezy version from 7.0 to 7Julian Andres Klode53-72/+72
The wheezy release now uses 7.1, 7.2 for point releases, so this is more accurate. The translations were adjusted using sed.
2013-10-23data/templates/Debian.info.in: Add jessieJulian Andres Klode1-0/+30
We already have the new Ubuntu development version, but not our own testing.
2013-10-21data/templates/Ubuntu.info.in: It's 'Tahr', not 'Thar'Julian Andres Klode1-3/+3
Stupid typo. Did I write this myself, or did I copy it from somewhere?
2013-10-21Release 0.9.0 to unstableJulian Andres Klode1-2/+2
2013-10-21debian/control: Set Standards-Version to 3.9.4Julian Andres Klode2-1/+3
2013-10-21po: Update templateJulian Andres Klode1-93/+118
2013-10-21data/templates/Ubuntu.info.in: Add "Trusty Thar"Julian Andres Klode2-0/+121
A copy from saucy, with name and numbers adjusted
2013-10-21tests/old/*.py: Update to new API as wellJulian Andres Klode12-110/+112
2013-10-21doc/examples/*.py: Update examples to the new APIJulian Andres Klode20-174/+167
Closes: #639022
2013-10-21aptsources: Correctly parse multiple options (LP: #1103200)Julian Andres Klode4-7/+39
It's still not optimal and we do not support the arch+ and arch- options, but it's a beginning.
2013-10-21doc/examples: Start updating to new APIJulian Andres Klode10-155/+156
2013-10-21doc/source/examples/dpkg-info.py: Use apt_inst.DebFileJulian Andres Klode2-2/+4
We previously used deb_extract_control, but this does not exist. Closes: #671784
2013-10-21python/cache.cc: Set NoDelete=true when creating Policy, fixes segfault in ↵Julian Andres Klode2-2/+8
destructor
2013-10-21apt/debfile.py: Pass strip_multi_arch=False to parse_depends.Julian Andres Klode6-6/+68
Patch by Michael, tests derived from the ones provided by the reporter. I included the test debs without the source package, as for our use case, all needed "source code" is included in the package itself anyway. Reported-By: Francois Gouget <fgouget@free.fr> Closes: #717859 Closes: #717861
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-14utils/get_ubuntu_mirrors_from_lp.py: Switch to Python 3 againJulian Andres Klode2-2/+2
2013-10-14tests/test_path.py: Use "Dir" option instead of "RootDir", and reset in tearDownJulian Andres Klode1-3/+3
This fixes tests/test_all.py.
2013-10-14Add tests for (all except one) functions accepting pathsJulian Andres Klode1-0/+106
Test the functions with a unicode and a byte object each. I ignore PackageManager.install, because I cannot imagine an easy way to test that one.
2013-10-14python/indexrecords.cc: IndexRecords.load() needs to accept bytes as wellJulian Andres Klode2-2/+31
2013-10-10apt, aptsources: Only call init_config() if not already initializedJulian Andres Klode3-4/+11
Based on an idea by the bug reporter. Reported-by: Dominique Lasserre <lasserre.d@googlemail.com> Closes: #686403
2013-10-10tests: Do not set dir::etc::sourceparts to /tmpJulian Andres Klode3-2/+6
This can cause build failures if *.list files are present in /tmp. Use /dev/null instead (not a directory, but APT silently ignores this).
2013-10-10apt/package.py: mark_upgrade misuses FromUser to set auto-installedDaniel Hartwig2-2/+7
Package.mark_upgrade uses FromUser for it's side effect of setting a package as auto-installed (or not). However, FromUser is also influential in pkgDepCache::IsModeChangeOk to determine whether an action should override a dpkg hold, etc.. Closes: #686726
2013-10-08Accept bytes object for file names (Closes: #680971)Julian Andres Klode1-0/+1
I accidentally pushed those changes to debian/sid, but the test suite still runs, so everything should be fine. We're still missing some automatic tests, though.
2013-10-08python/generic.cc: Move PyApt_Filename::init hereJulian Andres Klode2-21/+24
2013-10-08apt/package.py: Add a Package.has_config_files property (Closes: #712749)Julian Andres Klode2-0/+7
The name might be a bit misleading, but I cannot find a short name that completely describes this check.
2013-10-08python/apt_pkgmodule.cc: Fix documentation of version_compare (Closes: #680891)Julian Andres Klode2-2/+5
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-08python-apt: formatting error in library/index.rst (Closes: #692484)Julian Andres Klode2-1/+4
2013-10-08aptsources/sourceslist.py: Fix uniq docstring and hide it (Closes: #723815)Julian Andres Klode2-1/+11
We accidentally exported this and people wrongly assumed that it was intended for SourcesList objects.
2013-10-08data/templates/Ubuntu.info.in: add 'devel' seriesJeremy Bicha2-0/+110
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-11Update changelogJulian Andres Klode1-1/+5
2013-09-11Completely remove deprecated stuffJulian Andres Klode14-991/+0
2013-09-11Remove old API compatibility C++ support codeJulian Andres Klode19-947/+1
2013-09-10* merge from Ubuntu:Michael Vogt3-9/+127
- data/templates/Ubuntu.info.in: add "Saucy Salamander" to - debian/control: add "Multi-Arch: allowed"
2013-08-26python/arfile.cc: Fixup the formattingJulian Andres Klode1-16/+15
2013-08-05some fixes from a coverity scan runMichael Vogt2-102/+128
2013-08-05coverity fixesMichael Vogt4-4/+4
2013-06-06prepare releaseMichael Vogt1-2/+2