W. Trevor King [Mon, 12 Nov 2012 01:31:16 +0000 (20:31 -0500)]
keyword: remove shebang from module without __name__ == '__main__' block
W. Trevor King [Mon, 12 Nov 2012 01:28:36 +0000 (20:28 -0500)]
metadata: fix 'maintainer' -> 'maintainers' in module doctest
W. Trevor King [Mon, 12 Nov 2012 01:28:08 +0000 (20:28 -0500)]
metadata: add new _Upstream attributes in module doctest
W. Trevor King [Mon, 12 Nov 2012 01:25:10 +0000 (20:25 -0500)]
metadata: update gnome-print USE description
W. Trevor King [Mon, 12 Nov 2012 01:23:27 +0000 (20:23 -0500)]
metadata: gourmet package no longer part of a herd
W. Trevor King [Mon, 12 Nov 2012 01:22:54 +0000 (20:22 -0500)]
metadata: use print() in PackageFormatter doctest for Python 3 compatibility
W. Trevor King [Mon, 12 Nov 2012 01:18:56 +0000 (20:18 -0500)]
metadata: remove shebang from module without __name__ == '__main__' block
W. Trevor King [Sun, 11 Nov 2012 21:47:57 +0000 (16:47 -0500)]
package: use portage-9999 in Package.environment doctest
W. Trevor King [Sun, 11 Nov 2012 21:44:19 +0000 (16:44 -0500)]
package: use portage-9999 (and define pkg) in Package.ebuild_path doctest
W. Trevor King [Sun, 11 Nov 2012 21:42:03 +0000 (16:42 -0500)]
package: use portage-9999 in module doctest
It is more likely to stay current (and be masked and uninstalled) than
a particular Portage release.
W. Trevor King [Sun, 11 Nov 2012 21:40:07 +0000 (16:40 -0500)]
.gitignore: remove auto-generated stuff from `git status`
W. Trevor King [Sun, 11 Nov 2012 21:37:07 +0000 (16:37 -0500)]
package: update PackageFormatter doctest to use Query
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.
W. Trevor King [Sun, 11 Nov 2012 21:14:13 +0000 (16:14 -0500)]
package: use print() in PackageFormatter doctest for Python 3 compatibility
W. Trevor King [Sun, 11 Nov 2012 21:12:23 +0000 (16:12 -0500)]
package: change "f" -> "path" to avoid pylint C0103 (Invalid name "f")
W. Trevor King [Sun, 11 Nov 2012 21:09:50 +0000 (16:09 -0500)]
package: change "e" -> "error" to avoid pylint C0103 (Invalid name "e")
W. Trevor King [Sun, 11 Nov 2012 21:08:11 +0000 (16:08 -0500)]
package: remove shebang from module without __name__ == '__main__' block
W. Trevor King [Sun, 11 Nov 2012 21:06:08 +0000 (16:06 -0500)]
package: wrap long lines to avoid pylint C0301
W. Trevor King [Sun, 11 Nov 2012 16:31:37 +0000 (11:31 -0500)]
helpers: remove unused "sys" import
Pointed out by pylint:
W0611: 29: Unused import sys
W. Trevor King [Sun, 11 Nov 2012 16:30:20 +0000 (11:30 -0500)]
helpers: change "p" -> "path" to avoid pylint C0103 (Invalid name "p")
W. Trevor King [Sun, 11 Nov 2012 16:27:57 +0000 (11:27 -0500)]
helpers: wrap long lines to avoid pylint C0301
W. Trevor King [Sun, 11 Nov 2012 16:20:57 +0000 (11:20 -0500)]
pylint: update pylintrc based on the template from pylint 0.23.0
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.
W. Trevor King [Sun, 11 Nov 2012 15:52:55 +0000 (10:52 -0500)]
helpers: use grep instead of vim in FileOwner doctest
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.
Paul Varner [Fri, 9 Nov 2012 14:08:25 +0000 (08:08 -0600)]
Fix bug 381581 - revdep-rebuild unicode error
Changed the function to use gentoolkit functions instead of
reading the vardb directly.
Paul Varner [Wed, 31 Oct 2012 19:16:00 +0000 (14:16 -0500)]
eclean: Fix pkg sorting to work with Python3
Mike Frysinger [Wed, 31 Oct 2012 18:46:39 +0000 (14:46 -0400)]
eclean: sort pkg list shown to user
This makes it much easier to scan through and pick out packages.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Brian Dolbec [Sun, 21 Oct 2012 21:05:14 +0000 (14:05 -0700)]
more man page fixes.
Brian Dolbec [Sun, 21 Oct 2012 20:19:40 +0000 (13:19 -0700)]
man page updates thanks to Francesco Turco. Update analyze and rebuild modules to use a new not_implemented() in the ModuleBase class.
Paul Varner [Tue, 9 Oct 2012 22:09:45 +0000 (17:09 -0500)]
Minor example changes to equery man page.
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.
Paul Varner [Tue, 9 Oct 2012 21:32:01 +0000 (16:32 -0500)]
Modify _pkg_re to work with EAPI 4-python which is in use by Funtoo.
Testing on a Gentoo system showed no adverse affects with the change.
Brian Dolbec [Sat, 6 Oct 2012 22:13:49 +0000 (15:13 -0700)]
py 3.3 fix for bug 436934. Change the level parameter for the __import__() call.
Paul Varner [Wed, 26 Sep 2012 06:12:13 +0000 (01:12 -0500)]
Fix euse to always prefer /etc/portage/make.conf over /etc/make.conf. Bug 434672
Paul Varner [Thu, 6 Sep 2012 21:34:19 +0000 (16:34 -0500)]
Remove check of isatty when guessing color.
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.
Paul Varner [Fri, 24 Aug 2012 15:51:56 +0000 (10:51 -0500)]
Strip initial whitespace at the start of the description (Bug 432530).
Brian Dolbec [Wed, 1 Aug 2012 03:34:16 +0000 (20:34 -0700)]
mark dbapi as deprecated.
Brian Dolbec [Wed, 1 Aug 2012 03:23:14 +0000 (20:23 -0700)]
replace all use of dbapi's PORTDB, VARDB, BINDB assigned variables with the 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
Paul Varner [Tue, 24 Jul 2012 17:16:26 +0000 (12:16 -0500)]
Return string from Package.__str__ (Bug 423209)
Patch from Brennan Shacklett
Brian Dolbec [Fri, 29 Jun 2012 03:43:29 +0000 (20:43 -0700)]
reverse an accidental indentation change from tabs to spaces.
Brian Dolbec [Fri, 29 Jun 2012 02:36:13 +0000 (19:36 -0700)]
move enalyse/base.py to gentoolkit for general module use.
Brian Dolbec [Fri, 29 Jun 2012 02:33:33 +0000 (19:33 -0700)]
update docstrings to ready it for a move to gentoolkit for general use.
Brian Dolbec [Fri, 29 Jun 2012 02:23:15 +0000 (19:23 -0700)]
update authors with my contributions.
Paul Varner [Wed, 20 Jun 2012 17:11:44 +0000 (12:11 -0500)]
Add support for the md5-cache metadata format. (Bug 422675)
The gentoo tree is moving to the md5-cache format instead of pms. This
add support for reading the md5-cache metadata format.
Paul Varner [Wed, 20 Jun 2012 15:56:16 +0000 (10:56 -0500)]
Add support for ':' in the profiles parent file for bug 414961.
Bug #414961 allows ':' shorthand to resolve to the ${PORTDIR}/profiles
A value before the ':' references the repository, no value means
gentoo
Example: local:base would refer to the profiles directory in the
repository path owned by the 'local' repository
Paul Varner [Thu, 24 May 2012 05:54:59 +0000 (00:54 -0500)]
Change division to floor division for Python3 compatibility (Bug 417233).
Brian Dolbec [Thu, 7 Jun 2012 07:57:44 +0000 (00:57 -0700)]
fix a bug in enalyze rebuild where it did not consider IUSE defaults for calculating the use flag differences. Discovered by mingdao in #gentoo.
Brian Dolbec [Sat, 2 Jun 2012 18:52:10 +0000 (11:52 -0700)]
remove the auto linewrapping from the stablereq output line so it does not mess up the copy/paste of the cc's
Brian Dolbec [Sat, 2 Jun 2012 17:59:49 +0000 (10:59 -0700)]
add a -S, --stablereq option to equery meta to list the arch cc's to add to STABLEREQ bug on b.g.o.
Paul Varner [Wed, 16 May 2012 22:27:54 +0000 (17:27 -0500)]
Change sed statement in euse to fix bug 410365.
The sed statement was looking for the useflag as part of the regular
expression. Since the input to the statement had already grepped for
the relevant entries from use.local.desc, this is unneccessary. Changed
the sed statement to look for '(.*) *' instead of '(${1}) *'.
Paul Varner [Wed, 16 May 2012 21:58:04 +0000 (16:58 -0500)]
Fix output to be sorted using portage.versions.vercmp (bug 409449).
Paul Varner [Wed, 16 May 2012 21:12:03 +0000 (16:12 -0500)]
Make colors for useflags be the same as portage.
The current colors are the opposite of how portage uses the colors.
This just switches them so portage and equery show the same color for
the same meaning, Red is a set useflag and blue is an unset useflag.
Note: This ignores any user defined colormaps in portage.
Paul Varner [Tue, 8 May 2012 21:03:04 +0000 (16:03 -0500)]
Fix Bug 414627, where not all packages were being printed.
Not sure of why this fixes it, but it appears to be caused by
interaction between the map() and zip() iterator objects in python3.
The fix is to use the list() operator to create a list from the iterator
objects.
SÅ‚awomir Nizio [Wed, 25 Apr 2012 22:50:57 +0000 (00:50 +0200)]
Extend eread to allow sorting (bug 413577).
Paul Varner [Wed, 11 Apr 2012 18:50:29 +0000 (13:50 -0500)]
Fix eread to work on a prefix environment.
Paul Varner [Wed, 11 Apr 2012 17:41:32 +0000 (12:41 -0500)]
Remove incorrect usage of -r flage for egrep (Bug 410137).
Paul Varner [Wed, 11 Apr 2012 15:00:56 +0000 (10:00 -0500)]
Fix eshowkw traceback on prefix enviroments (Bug 411599).
Paul Varner [Wed, 11 Apr 2012 14:03:21 +0000 (09:03 -0500)]
Update man page to include --ebuild option to equery which command
Mike Frysinger [Wed, 4 Apr 2012 18:07:59 +0000 (14:07 -0400)]
equery: turn sys.argv into a parameter
This lets other tools import equery and call the main func with its own
set of flags.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Paul Varner <fuzzyray@gentoo.org>
Paul Varner [Tue, 20 Mar 2012 03:59:02 +0000 (22:59 -0500)]
Add patch from Vitaly Shimansky to fix regex in modify_packages()
Brian Dolbec [Mon, 19 Mar 2012 06:49:20 +0000 (23:49 -0700)]
fix a missed hardcoded path not using the portage.root.
Brian Dolbec [Mon, 19 Mar 2012 06:47:38 +0000 (23:47 -0700)]
add an ebuild listing option to equery which as requested by Calchan and ryao.
Paul Varner [Tue, 6 Mar 2012 05:33:35 +0000 (23:33 -0600)]
Apply patch from Jared Hancock to disable globbing.
This patch disables shell globbing except where actually needed. This
will hopefully fix bug 382219.
Brian Dolbec [Sun, 4 Mar 2012 07:40:54 +0000 (23:40 -0800)]
Add ignored files/directories check.
Add a warning for incomplete pkg merges with -MERGING- in the name.
Brian Dolbec [Fri, 2 Mar 2012 17:46:28 +0000 (09:46 -0800)]
fix bug 406613. ignore any .keep_* files in /var/db/pkg. Print a warning for any other files found.
Brian Dolbec [Fri, 2 Mar 2012 00:01:06 +0000 (16:01 -0800)]
fix bug 406495. renamed portage.config() parameter from _eprefix to eprefix.
Paul Varner [Mon, 20 Feb 2012 23:41:38 +0000 (17:41 -0600)]
Update the comment for setting the overlay name.
Paul Varner [Mon, 20 Feb 2012 23:22:19 +0000 (17:22 -0600)]
Change overlay name to match portage when repo_name is not found.
Paul Varner [Mon, 20 Feb 2012 23:13:02 +0000 (17:13 -0600)]
Fix euse -i to not print errors from 'cat' when determining the repository name
Paul Varner [Thu, 16 Feb 2012 17:34:37 +0000 (11:34 -0600)]
Fix revdep-rebuild.sh to properly honor emerge return codes.
This should fix bugs 326923, 351054, and 404065
Paul Varner [Mon, 6 Feb 2012 16:22:51 +0000 (10:22 -0600)]
Merge branch 'gentoolkit' of git+ssh://git.overlays.gentoo.org/proj/gentoolkit into gentoolkit
Paul Varner [Mon, 6 Feb 2012 16:20:23 +0000 (10:20 -0600)]
Change the documentation for revdep-rebuild --library.
Change the help output and man page to reflect that --library will
unconditionally rebuild the packages with the named library.
Brian Dolbec [Fri, 27 Jan 2012 09:52:33 +0000 (01:52 -0800)]
Fix bug 400957 where -hC did not work to to printing help immediately upon finding the -h option and not parsing the remaining options. Fixed equery, enalyze, eclean, revdep-rebuild (although, python revdep did not colorize the help).
Brian Dolbec [Sun, 22 Jan 2012 17:48:36 +0000 (09:48 -0800)]
fix bug 398103 to properly delete broken symlinks and not abort.
Brian Dolbec [Fri, 23 Dec 2011 06:24:53 +0000 (22:24 -0800)]
Fix equery's term_width too.
Brian Dolbec [Fri, 23 Dec 2011 06:01:45 +0000 (22:01 -0800)]
Fix the term_width setting for the recent portage change, which is now returning 0 instead of -1.
This should work for all portage versions.
Paul Varner [Mon, 19 Dec 2011 19:38:40 +0000 (13:38 -0600)]
Fix setup.py to work with EPREFIX changes in Portage (Bug 394909).
Paul Varner [Mon, 28 Nov 2011 15:45:57 +0000 (09:45 -0600)]
Fix typo in euse
Paul Varner [Wed, 12 Oct 2011 16:34:47 +0000 (11:34 -0500)]
Fix revdep-rebuiild to exit correctly with correct error code when emerge
fails. Bug 351054
dol-sen [Mon, 10 Oct 2011 17:34:56 +0000 (10:34 -0700)]
reverse the logging message in analyse.py since it is not correct.
dol-sen [Mon, 10 Oct 2011 16:03:32 +0000 (09:03 -0700)]
add --library output to revdep-rebuild.
Christian Ruppert [Wed, 7 Sep 2011 12:39:10 +0000 (14:39 +0200)]
Add missing quotes
dol-sen [Thu, 25 Aug 2011 07:04:47 +0000 (00:04 -0700)]
fix bug 380573.
Paul Varner [Wed, 24 Aug 2011 17:28:06 +0000 (12:28 -0500)]
Fix traversal of cascading profiles by euse (Bug 379559).
Thanks to Ian Abbot for the patch!
Paul Varner [Wed, 27 Jul 2011 19:01:34 +0000 (14:01 -0500)]
Fix missing parenthises in euse. Bug 376393
Paul Varner [Sat, 16 Jul 2011 04:02:07 +0000 (23:02 -0500)]
Fix updated Package class to work correctly with prefix portage
Paul Varner [Sat, 16 Jul 2011 03:16:56 +0000 (22:16 -0500)]
Update Package Class to allow passing of local_config.
The local_config variable determines if the portage.config settings
object takes the /etc/portage/package.* files into account.
Paul Varner [Fri, 15 Jul 2011 19:59:23 +0000 (14:59 -0500)]
Do not index ChangeLog entries with an invalid CPV. (Bug 375293)
Paul Varner [Thu, 14 Jul 2011 18:29:09 +0000 (13:29 -0500)]
Fix call_program to actually return stdout as string under py3k
Paul Varner [Thu, 14 Jul 2011 18:27:44 +0000 (13:27 -0500)]
Change default cache directory to '/var/cache/revdep-rebuild'
Paul Varner [Thu, 14 Jul 2011 04:21:08 +0000 (23:21 -0500)]
Fix help for --binpkgs-missing option
Paul Varner [Thu, 14 Jul 2011 02:31:41 +0000 (21:31 -0500)]
Make development warning always print
dol-sen [Thu, 14 Jul 2011 01:43:17 +0000 (18:43 -0700)]
Merge branch 'gentoolkit' of git+ssh://git.overlays.gentoo.org/proj/gentoolkit into gentoolkit
Conflicts:
pym/gentoolkit/revdep_rebuild/collect.py
pym/gentoolkit/revdep_rebuild/rebuild.py
pym/gentoolkit/revdep_rebuild/settings.py
pym/gentoolkit/revdep_rebuild/stuff.py
dol-sen [Thu, 14 Jul 2011 01:37:51 +0000 (18:37 -0700)]
major pylint cleanup, 2 probable bugs fixed along the way.
dol-sen [Wed, 13 Jul 2011 22:51:24 +0000 (15:51 -0700)]
merge head, fix conflicts, more pylint cleanup
dol-sen [Wed, 13 Jul 2011 22:37:00 +0000 (15:37 -0700)]
partial pylint cleanup
Paul Varner [Wed, 13 Jul 2011 20:06:13 +0000 (15:06 -0500)]
Fix python 3 incompatible code
Paul Varner [Wed, 13 Jul 2011 16:00:52 +0000 (11:00 -0500)]
Add from __future__ import print_function for python 3 compatability
Paul Varner [Wed, 13 Jul 2011 15:50:42 +0000 (10:50 -0500)]
Change description from 'analyze' to 'revdep-rebuild' description
Paul Varner [Wed, 13 Jul 2011 15:41:22 +0000 (10:41 -0500)]
Hardcode APP_NAME to revdep-rebuild
dol-sen [Wed, 13 Jul 2011 15:35:44 +0000 (08:35 -0700)]
fix the placement of the l.endswith('.a') in the if
dol-sen [Wed, 13 Jul 2011 05:34:01 +0000 (22:34 -0700)]
fix a possibility of a None type error in exclDictMatchCP
dol-sen [Wed, 13 Jul 2011 05:32:42 +0000 (22:32 -0700)]
fix the use of set updates and the with statement.