summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2012-11-11dependencies: avoid Package-is-not-iterable in graph_reverse_depends doctestW. 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-11dependencies: update Dependencies doctest to use portage-9999W. Trevor King
2012-11-11helpers: update entry counts and version range in ChangeLog doctestW. Trevor King
2012-11-11helpers: update package counts in get_cpvs doctestW. Trevor King
2012-11-11helpers: 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-11helpers: use print() in ChangeLog doctest for Python 3 compatibilityW. Trevor King
Also update the expected portage.latest.
2012-11-11keyword: define keyword_list in compare_strs doctestW. 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-11keyword: use Python 2/3-agnostic set notation in reduce_keywords doctestW. 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-11keyword: remove shebang from module without __name__ == '__main__' blockW. Trevor King
2012-11-11metadata: fix 'maintainer' -> 'maintainers' in module doctestW. Trevor King
2012-11-11metadata: add new _Upstream attributes in module doctestW. Trevor King
2012-11-11metadata: update gnome-print USE descriptionW. Trevor King
2012-11-11metadata: gourmet package no longer part of a herdW. Trevor King
2012-11-11metadata: use print() in PackageFormatter doctest for Python 3 compatibilityW. Trevor King
2012-11-11metadata: remove shebang from module without __name__ == '__main__' blockW. Trevor King
2012-11-11package: use portage-9999 in Package.environment doctestW. Trevor King
2012-11-11package: use portage-9999 (and define pkg) in Package.ebuild_path doctestW. Trevor King
2012-11-11package: use portage-9999 in module doctestW. 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-11package: update PackageFormatter doctest to use QueryW. 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-11package: use print() in PackageFormatter doctest for Python 3 compatibilityW. Trevor King
2012-11-11package: change "f" -> "path" to avoid pylint C0103 (Invalid name "f")W. Trevor King
2012-11-11package: change "e" -> "error" to avoid pylint C0103 (Invalid name "e")W. Trevor King
2012-11-11package: remove shebang from module without __name__ == '__main__' blockW. Trevor King
2012-11-11package: wrap long lines to avoid pylint C0301W. Trevor King
2012-11-11helpers: remove unused "sys" importW. Trevor King
Pointed out by pylint: W0611: 29: Unused import sys
2012-11-11helpers: change "p" -> "path" to avoid pylint C0103 (Invalid name "p")W. Trevor King
2012-11-11helpers: wrap long lines to avoid pylint C0301W. Trevor King
2012-11-11pylint: update pylintrc based on the template from pylint 0.23.0W. 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-11helpers: use grep instead of vim in FileOwner doctestW. 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-09Fix bug 381581 - revdep-rebuild unicode errorPaul Varner
Changed the function to use gentoolkit functions instead of reading the vardb directly.
2012-10-31eclean: Fix pkg sorting to work with Python3Paul Varner
2012-10-31eclean: sort pkg list shown to userMike Frysinger
This makes it much easier to scan through and pick out packages. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2012-10-21more man page fixes.Brian Dolbec
2012-10-21man 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-09Minor 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-09Modify _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-06py 3.3 fix for bug 436934. Change the level parameter for the __import__() ↵Brian Dolbec
call.
2012-10-02Minor fix in rebuild (parsing options)Slawek
2012-10-02Cleanup in revdep-rebuild file; improved multi-core analyzing (speedup on ↵Slawek
multi-core cpu to about 60% original time)
2012-09-26Fix euse to always prefer /etc/portage/make.conf over /etc/make.conf. Bug 434672Paul Varner
2012-09-06Remove 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-24Strip initial whitespace at the start of the description (Bug 432530).Paul Varner
2012-07-31mark dbapi as deprecated.Brian Dolbec
2012-07-31replace 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-24Return string from Package.__str__ (Bug 423209)Paul Varner
Patch from Brennan Shacklett
2012-06-28reverse an accidental indentation change from tabs to spaces.Brian Dolbec
2012-06-28move enalyse/base.py to gentoolkit for general module use.Brian Dolbec
2012-06-28update docstrings to ready it for a move to gentoolkit for general use.Brian Dolbec
2012-06-28update authors with my contributions.Brian Dolbec