| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2012-11-11 | dependencies: avoid Package-is-not-iterable in graph_reverse_depends doctest | W. Trevor King | |
| Dependency is a subclass of Query, so we need to initialize it with a CPV string, not a Package instance. The old doctest was raising: File ".../pym/gentoolkit/dependencies.py", line 202, in gentoolkit.dependencies.Dependencies.graph_reverse_depends Failed example: deptree = ffmpeg.graph_reverse_depends( only_direct=False, # Include indirect revdeps pkgset=installed) # from installed pkgset Exception raised: Traceback (most recent call last): File "/usr/lib/python3.2/doctest.py", line 1288, in __run compileflags, 1), test.globs) File "<doctest gentoolkit.dependencies.Dependencies.graph_reverse_depends[5]>", line 3, in <module> pkgset=installed) # from installed pkgset File ".../pym/gentoolkit/dependencies.py", line 237, in graph_reverse_depends pkgset = tuple(Dependencies(x) for x in pkgset) File ".../pym/gentoolkit/dependencies.py", line 237, in <genexpr> pkgset = tuple(Dependencies(x) for x in pkgset) File ".../pym/gentoolkit/dependencies.py", line 45, in __init__ Query.__init__(self, query) File "/home/wking/src/gentoolkit/pym/gentoolkit/query.py", line 51, in __init__ if not set(query).intersection(needed_chars): TypeError: 'Package' object is not iterable Also use ffmpeg-9999 (for better future-proofing) and update the length of the resulting deptree. | |||
| 2012-11-11 | dependencies: update Dependencies doctest to use portage-9999 | W. Trevor King | |
| 2012-11-11 | helpers: update entry counts and version range in ChangeLog doctest | W. Trevor King | |
| 2012-11-11 | helpers: update package counts in get_cpvs doctest | W. Trevor King | |
| 2012-11-11 | helpers: convert get_cpvs output to a set before calculating len() | W. Trevor King | |
| This avoids "TypeError: object of type 'generator' has no len()". | |||
| 2012-11-11 | helpers: use print() in ChangeLog doctest for Python 3 compatibility | W. Trevor King | |
| Also update the expected portage.latest. | |||
| 2012-11-11 | keyword: define keyword_list in compare_strs doctest | W. Trevor King | |
| This is not much of a doctest, since we aren't using compare_strs() anywhere, but at least it doesn't error out. Note that comparisons have been reworked in Python 3 where cmp() has been removed. | |||
| 2012-11-11 | keyword: use Python 2/3-agnostic set notation in reduce_keywords doctest | W. Trevor King | |
| Python 2.7 prints sets as "set([1, 2])", but Python 3.2 prints them as "{1, 2}". Avoid having to chose by showing that the result of reduce_keywords() is a set, and then printing the elements in a list. | |||
| 2012-11-11 | keyword: remove shebang from module without __name__ == '__main__' block | W. Trevor King | |
| 2012-11-11 | metadata: fix 'maintainer' -> 'maintainers' in module doctest | W. Trevor King | |
| 2012-11-11 | metadata: add new _Upstream attributes in module doctest | W. Trevor King | |
| 2012-11-11 | metadata: update gnome-print USE description | W. Trevor King | |
| 2012-11-11 | metadata: gourmet package no longer part of a herd | W. Trevor King | |
| 2012-11-11 | metadata: use print() in PackageFormatter doctest for Python 3 compatibility | W. Trevor King | |
| 2012-11-11 | metadata: remove shebang from module without __name__ == '__main__' block | W. Trevor King | |
| 2012-11-11 | package: use portage-9999 in Package.environment doctest | W. Trevor King | |
| 2012-11-11 | package: use portage-9999 (and define pkg) in Package.ebuild_path doctest | W. Trevor King | |
| 2012-11-11 | package: use portage-9999 in module doctest | W. Trevor King | |
| It is more likely to stay current (and be masked and uninstalled) than a particular Portage release. | |||
| 2012-11-11 | .gitignore: remove auto-generated stuff from `git status` | W. Trevor King | |
| 2012-11-11 | package: update PackageFormatter doctest to use Query | W. Trevor King | |
| helpers.find_packages has been replaced by the query.Query class. Also temporarily turn off Portage colorization during the doctest, otherwise the CPV value is printed in green. | |||
| 2012-11-11 | package: use print() in PackageFormatter doctest for Python 3 compatibility | W. Trevor King | |
| 2012-11-11 | package: change "f" -> "path" to avoid pylint C0103 (Invalid name "f") | W. Trevor King | |
| 2012-11-11 | package: change "e" -> "error" to avoid pylint C0103 (Invalid name "e") | W. Trevor King | |
| 2012-11-11 | package: remove shebang from module without __name__ == '__main__' block | W. Trevor King | |
| 2012-11-11 | package: wrap long lines to avoid pylint C0301 | W. Trevor King | |
| 2012-11-11 | helpers: remove unused "sys" import | W. Trevor King | |
| Pointed out by pylint: W0611: 29: Unused import sys | |||
| 2012-11-11 | helpers: change "p" -> "path" to avoid pylint C0103 (Invalid name "p") | W. Trevor King | |
| 2012-11-11 | helpers: wrap long lines to avoid pylint C0301 | W. Trevor King | |
| 2012-11-11 | pylint: update pylintrc based on the template from pylint 0.23.0 | W. Trevor King | |
| The previous version of pylintrc defined MASTER.ignore twice, which is illegal in Python 3: $ pylint --rcfile=pylintrc pym/gentoolkit/helpers.py Traceback (most recent call last): ... configparser.DuplicateOptionError: While reading from pylintrc [line 24]: option 'ignore' in section 'MASTER' already exists I kept other option values unchanged from the old pylintrc, and added "# was ..." comments for each non-default value. | |||
| 2012-11-11 | helpers: use grep instead of vim in FileOwner doctest | W. Trevor King | |
| grep is in the base profile so the tester is more likely to have it installed. The version may be off, but a test result with a different grep version is still obviously working. An empty result from an uninstalled file is not so comforting. | |||
| 2012-11-09 | Fix bug 381581 - revdep-rebuild unicode error | Paul Varner | |
| Changed the function to use gentoolkit functions instead of reading the vardb directly. | |||
| 2012-10-31 | eclean: Fix pkg sorting to work with Python3 | Paul Varner | |
| 2012-10-31 | eclean: sort pkg list shown to user | Mike Frysinger | |
| This makes it much easier to scan through and pick out packages. Signed-off-by: Mike Frysinger <vapier@gentoo.org> | |||
| 2012-10-21 | more man page fixes. | Brian Dolbec | |
| 2012-10-21 | man page updates thanks to Francesco Turco. Update analyze and rebuild ↵ | Brian Dolbec | |
| modules to use a new not_implemented() in the ModuleBase class. | |||
| 2012-10-09 | Minor example changes to equery man page. | Paul Varner | |
| Fix typo for 'equery which' example. Change 'equery meta --description screen' to 'equery meta --description app-misc/screen' so portage doesn't show ambigous package name error. | |||
| 2012-10-09 | Modify _pkg_re to work with EAPI 4-python which is in use by Funtoo. | Paul Varner | |
| Testing on a Gentoo system showed no adverse affects with the change. | |||
| 2012-10-06 | py 3.3 fix for bug 436934. Change the level parameter for the __import__() ↵ | Brian Dolbec | |
| call. | |||
| 2012-10-02 | Minor fix in rebuild (parsing options) | Slawek | |
| 2012-10-02 | Cleanup in revdep-rebuild file; improved multi-core analyzing (speedup on ↵ | Slawek | |
| multi-core cpu to about 60% original time) | |||
| 2012-09-26 | Fix euse to always prefer /etc/portage/make.conf over /etc/make.conf. Bug 434672 | Paul Varner | |
| 2012-09-06 | Remove check of isatty when guessing color. | Paul Varner | |
| When going through a pipe, color is already turned off. This allows color to be restored with the --no-pipe option. If color is not desired with --no-pipe, then --nocolor should also be specified. | |||
| 2012-08-24 | Strip initial whitespace at the start of the description (Bug 432530). | Paul Varner | |
| 2012-07-31 | mark dbapi as deprecated. | Brian Dolbec | |
| 2012-07-31 | replace all use of dbapi's PORTDB, VARDB, BINDB assigned variables with the ↵ | Brian Dolbec | |
| actuall portage calls to take advantage of all 3 being lazyloaded. The assignemt in dbapi causes all 3 to be loaded, slowing down runs that do not need all 3 | |||
| 2012-07-24 | Return string from Package.__str__ (Bug 423209) | Paul Varner | |
| Patch from Brennan Shacklett | |||
| 2012-06-28 | reverse an accidental indentation change from tabs to spaces. | Brian Dolbec | |
| 2012-06-28 | move enalyse/base.py to gentoolkit for general module use. | Brian Dolbec | |
| 2012-06-28 | update docstrings to ready it for a move to gentoolkit for general use. | Brian Dolbec | |
| 2012-06-28 | update authors with my contributions. | Brian Dolbec | |
