Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2014-01-06 | tests/test_deps.py: Remove an invalid blank line | Julian Andres Klode | 1 | -1/+0 | |
Fixes pep8 | |||||
2014-01-06 | apt/package.py: Fix BaseDependency.__dstr.__ne__() | Julian Andres Klode | 2 | -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-06 | Unify list of comparison type values everywhere | Julian Andres Klode | 4 | -4/+7 | |
They are now ordered and include the != and < operators in all cases. | |||||
2014-01-06 | apt, doc: Fix the list of comp_type values | Julian Andres Klode | 3 | -3/+3 | |
Reported-by: Michael Schaller <michael@5challer.de> | |||||
2014-01-06 | Use a single code base for Python 2 and 3 | Julian Andres Klode | 6 | -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-06 | Use print_function everywhere | Julian Andres Klode | 13 | -63/+86 | |
This brings the code closer to Python 3. Automatically converted using 2to3 -f print. | |||||
2014-01-06 | tests: Remove checks for Python older than 2.7 | Julian Andres Klode | 3 | -24/+5 | |
This simplifies the test code a tiny bit. | |||||
2014-01-06 | Drop support for Python 2.6 | Julian Andres Klode | 2 | -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-06 | debian/control: Replace a tab with spaces | Julian Andres Klode | 1 | -1/+1 | |
This looked a bit ugly if you had the wrong tab size. | |||||
2014-01-06 | Style fix: Do not use "is True" / "is False" | Julian Andres Klode | 3 | -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-05 | make test_pep8.py pass | Michael Vogt | 48 | -325/+399 | |
2014-01-05 | make pyflakes clean | Michael Vogt | 18 | -27/+12 | |
2014-01-05 | add .travis.yml & update python3 dependency to 3.3 | Michael Vogt | 3 | -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-05 | add new pep8,pyflakes dependencies | Michael Vogt | 3 | -4/+6 | |
2014-01-05 | add pyflakes test | Michael Vogt | 1 | -0/+41 | |
2014-01-05 | make pep8 test part of the unittests | Michael Vogt | 1 | -0/+27 | |
2014-01-05 | apt/cache.py, apt/package.py: Fixed PEP8 and pyflakes issues | Michael Schaller | 3 | -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 Vogt | 2 | -1/+12 | |
- when using apt.Cache(rootdir=/some/dir) only read the APT configuration from this rootdir instead of /etc (closes: #728274) | |||||
2013-10-24 | apt/cache.py: Call os.path.abspath() on a supplied rootdir (LP: #792295) | Julian Andres Klode | 1 | -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-23 | Release 0.9.1 to unstable | Julian Andres Klode | 1 | -0/+19 | |
2013-10-23 | po: Update the template | Julian Andres Klode | 1 | -16/+21 | |
2013-10-23 | debian/python-apt-doc.links: Replace bundled underscore.js by symlink | Julian Andres Klode | 2 | -1/+2 | |
And add a dependency in debian/control. | |||||
2013-10-23 | debian: Upgrade to debhelper 9 (and dpkg-buildflags) | Julian Andres Klode | 3 | -4/+4 | |
This gives us some more hardening, amongst other things. | |||||
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-23 | data/templates/Debian.info.in: Change wheezy version from 7.0 to 7 | Julian Andres Klode | 53 | -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-23 | data/templates/Debian.info.in: Add jessie | Julian Andres Klode | 1 | -0/+30 | |
We already have the new Ubuntu development version, but not our own testing. | |||||
2013-10-21 | data/templates/Ubuntu.info.in: It's 'Tahr', not 'Thar' | Julian Andres Klode | 1 | -3/+3 | |
Stupid typo. Did I write this myself, or did I copy it from somewhere? | |||||
2013-10-21 | Release 0.9.0 to unstable | Julian Andres Klode | 1 | -2/+2 | |
2013-10-21 | debian/control: Set Standards-Version to 3.9.4 | Julian Andres Klode | 2 | -1/+3 | |
2013-10-21 | po: Update template | Julian Andres Klode | 1 | -93/+118 | |
2013-10-21 | data/templates/Ubuntu.info.in: Add "Trusty Thar" | Julian Andres Klode | 2 | -0/+121 | |
A copy from saucy, with name and numbers adjusted | |||||
2013-10-21 | tests/old/*.py: Update to new API as well | Julian Andres Klode | 12 | -110/+112 | |
2013-10-21 | doc/examples/*.py: Update examples to the new API | Julian Andres Klode | 20 | -174/+167 | |
Closes: #639022 | |||||
2013-10-21 | aptsources: Correctly parse multiple options (LP: #1103200) | Julian Andres Klode | 4 | -7/+39 | |
It's still not optimal and we do not support the arch+ and arch- options, but it's a beginning. | |||||
2013-10-21 | doc/examples: Start updating to new API | Julian Andres Klode | 10 | -155/+156 | |
2013-10-21 | doc/source/examples/dpkg-info.py: Use apt_inst.DebFile | Julian Andres Klode | 2 | -2/+4 | |
We previously used deb_extract_control, but this does not exist. Closes: #671784 | |||||
2013-10-21 | python/cache.cc: Set NoDelete=true when creating Policy, fixes segfault in ↵ | Julian Andres Klode | 2 | -2/+8 | |
destructor | |||||
2013-10-21 | apt/debfile.py: Pass strip_multi_arch=False to parse_depends. | Julian Andres Klode | 6 | -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-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 | utils/get_ubuntu_mirrors_from_lp.py: Switch to Python 3 again | Julian Andres Klode | 2 | -2/+2 | |
2013-10-14 | tests/test_path.py: Use "Dir" option instead of "RootDir", and reset in tearDown | Julian Andres Klode | 1 | -3/+3 | |
This fixes tests/test_all.py. | |||||
2013-10-14 | Add tests for (all except one) functions accepting paths | Julian Andres Klode | 1 | -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-14 | python/indexrecords.cc: IndexRecords.load() needs to accept bytes as well | Julian Andres Klode | 2 | -2/+31 | |