summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2014-01-26debian/rules: Use dh_sphinxdoc integrationJulian Andres Klode2-2/+2
This ensures that we do not include JavaScript from Sphinx in our binary package. Adjust debian/control to include the dependencies created by dh_sphinxdoc.
2014-01-26doc/source/conf.py: Python 3 supportJulian Andres Klode1-0/+2
Correctly decode the process output in Python 3, so everything works if sphinx is run using python3.
2014-01-25Release 0.9.2Julian Andres Klode1-3/+30
2014-01-25debian/control: Drop python-{unittest2,debian} build depsJulian Andres Klode1-2/+0
They are not used anymore.
2014-01-25debian/control: Set Standards-Version to 3.9.5Julian Andres Klode1-1/+1
2014-01-25apt/package.py: Pass an apt_pkg.Dependency to BaseDependencyJulian Andres Klode2-40/+43
Instead of passing the properties to __init__(), let's just pass the apt_pkg.Dependency. Store that in a _dep attribute, and provide properties to provide the API. The other classes do it this way as well. Reported-by: Michael Schaller <michael@5challer.de>
2014-01-25apt/package.py: Improved readability and documentation of ↵Michael Schaller2-3/+19
BaseDependency.__dstr().
2014-01-25tests/test_deps.py: test_dstr cleanup and fixesJulian Andres Klode1-22/+13
Simplify the code by not stating all test cases in the code, but using a loop. Also adds more tests this way.
2014-01-23tests/test_aptsources.py: Fix regression in d95a8f2Julian Andres Klode1-1/+1
Commit d95a8f27774842beb43bda54c4c61b67fe76a032 introduced a regression in this test that did not catch an invalid False value for the trusted property of a source without trusted set.
2014-01-14python/pkgmanager.cc: Do not create temporary CppPyRefJulian Andres Klode1-1/+1
Instead of creating a CppPyRef with the only purpose of destroying it, just decrement the reference count. Reported-by: cppcheck
2014-01-07apply patch from Barry Warsaw to fix autopkgtestMichael Vogt3-2/+7
2014-01-07debian/gbp.conf: Set sign-tags = TrueJulian Andres Klode1-0/+1
2014-01-07tests: Add back test_hashsums from old and updateJulian Andres Klode3-24/+27
These are automatic tests and they still work, so it's pointless not to use them.
2014-01-06debian/README.source: Drop it, it's useless bzrJulian Andres Klode1-3/+0
This contains some bzr advices. It's wrong for git, and we don't need it for git because git is popular.
2014-01-06tests/test_deps.py: Remove an invalid blank lineJulian Andres Klode1-1/+0
Fixes pep8
2014-01-06apt/package.py: Fix BaseDependency.__dstr.__ne__()Julian Andres Klode2-1/+29
It turns out I missed this. Just simplify it to return not self.__eq__(other). Also add a test case for it. Reported-by: Michael Schaller <michael@5challer.de>
2014-01-06Unify list of comparison type values everywhereJulian Andres Klode4-4/+7
They are now ordered and include the != and < operators in all cases.
2014-01-06apt, doc: Fix the list of comp_type valuesJulian Andres Klode3-3/+3
Reported-by: Michael Schaller <michael@5challer.de>
2014-01-06Use a single code base for Python 2 and 3Julian Andres Klode6-25/+33
This is much better than running 2to3 during the build, as it gives us more control over the Python 3 code.
2014-01-06Use print_function everywhereJulian Andres Klode13-63/+86
This brings the code closer to Python 3. Automatically converted using 2to3 -f print.
2014-01-06tests: Remove checks for Python older than 2.7Julian Andres Klode3-24/+5
This simplifies the test code a tiny bit.
2014-01-06Drop support for Python 2.6Julian Andres Klode2-11/+4
This will allow us to use more Python 3 idioms in the code, and possibly even get a single code base that works in Python 2.7 and Python 3.3 and newer.
2014-01-06debian/control: Replace a tab with spacesJulian Andres Klode1-1/+1
This looked a bit ugly if you had the wrong tab size.
2014-01-06Style fix: Do not use "is True" / "is False"Julian Andres Klode3-16/+16
This is uncommon style. It's better to use "pred" instead of "pred is True" and "not pred" instead of "pred is False".
2014-01-05make test_pep8.py passMichael Vogt48-325/+399
2014-01-05make pyflakes cleanMichael Vogt18-27/+12
2014-01-05add .travis.yml & update python3 dependency to 3.3Michael Vogt3-33/+49
This patch adds support for the travis-ci.org CI system. The "C" environment in .travis.yml is used to avoid having PPA python versions installed in the travis chroot. python3.3 is needed so that test_paths.py runs The tests_paths.py will only work with python3.3 as it uses the u"" prefix
2014-01-05add new pep8,pyflakes dependenciesMichael Vogt3-4/+6
2014-01-05add pyflakes testMichael Vogt1-0/+41
2014-01-05make pep8 test part of the unittestsMichael Vogt1-0/+27
2014-01-05apt/cache.py, apt/package.py: Fixed PEP8 and pyflakes issuesMichael Schaller3-49/+53
This commit removed the unused local variable 'transient' in 'apt/cache.py' and the unused import 'warnings' in 'apt/package.py'.
2013-11-23* apt/cache.py:Michael Vogt2-1/+12
- when using apt.Cache(rootdir=/some/dir) only read the APT configuration from this rootdir instead of /etc (closes: #728274)
2013-10-24apt/cache.py: Call os.path.abspath() on a supplied rootdir (LP: #792295)Julian Andres Klode1-0/+1
When the rootdir option is set to a relative path, that path appears multiple times in the dir::state::status path, as we also prepend it there.
2013-10-23Release 0.9.1 to unstableJulian Andres Klode1-0/+19
2013-10-23po: Update the templateJulian Andres Klode1-16/+21
2013-10-23debian/python-apt-doc.links: Replace bundled underscore.js by symlinkJulian Andres Klode2-1/+2
And add a dependency in debian/control.
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