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.
Paul Varner [Tue, 12 Jul 2011 21:26:14 +0000 (16:26 -0500)]
Remove automatic adding of pretend to revdep-rebuild options.
Fix la file checker to find .a libraries referenced.
Add --complete-graph=y to emerge command.
Paul Varner [Tue, 12 Jul 2011 20:31:33 +0000 (15:31 -0500)]
Fix python 3 syntax errors with new revdep-rebuild. Change VERSION to
reference __version__.
Paul Varner [Tue, 12 Jul 2011 20:05:29 +0000 (15:05 -0500)]
Update setup.py for python revdep-rebuild
Paul Varner [Tue, 12 Jul 2011 19:41:30 +0000 (14:41 -0500)]
Switch revdep-rebuild to python version.
revdep-rebuild.sh is original bash scipt.
Slawek [Thu, 28 Apr 2011 09:41:35 +0000 (11:41 +0200)]
Fixed --library checking when not using cache
Slawek [Wed, 27 Apr 2011 04:21:03 +0000 (06:21 +0200)]
Added support for file path in -L option
Slawek [Tue, 26 Apr 2011 07:08:24 +0000 (09:08 +0200)]
Fixed .la files parser. Some minor logging fixes.
dol-sen [Mon, 25 Apr 2011 07:23:55 +0000 (00:23 -0700)]
pass the nocolor setting on to emerge.
dol-sen [Mon, 25 Apr 2011 07:22:11 +0000 (00:22 -0700)]
move unused function to stuff.py
dol-sen [Mon, 25 Apr 2011 07:05:43 +0000 (00:05 -0700)]
change the masking status message.
dol-sen [Mon, 25 Apr 2011 07:04:33 +0000 (00:04 -0700)]
whitespace separation from system imports
dol-sen [Mon, 25 Apr 2011 07:03:20 +0000 (00:03 -0700)]
more cleanup of importing logging. Use the one defined or passed in to in main().
dol-sen [Mon, 25 Apr 2011 06:18:44 +0000 (23:18 -0700)]
migrate away from a global SETTINGS usage.
Better for tests and api usability.
dol-sen [Mon, 25 Apr 2011 06:15:05 +0000 (23:15 -0700)]
new /bin/revdep-ng script. revamp rebuild.py for a better api.
dol-sen [Sun, 24 Apr 2011 22:24:01 +0000 (15:24 -0700)]
convert to gentoolkit's standard tab indent.
dol-sen [Sun, 24 Apr 2011 22:18:27 +0000 (15:18 -0700)]
rename revdep-rebuild.py due to a python error if a '-' is used in the name.
Slawek [Tue, 15 Feb 2011 05:24:25 +0000 (06:24 +0100)]
Fixed bug from: bugs.gentoo.org/show_bug.cgi?id=353518
Slawek [Tue, 18 Jan 2011 06:18:42 +0000 (07:18 +0100)]
Some fixes after file split. Removed unwanted files. Moved settings into module
Slawomir Lis [Mon, 17 Jan 2011 12:31:33 +0000 (13:31 +0100)]
Split to several files. Introduced logging (instead of print_v)
Slawek [Fri, 7 Jan 2011 05:46:19 +0000 (06:46 +0100)]
Fixed error in reading cache. Fixed problem with too many files to check.
lis.slawek [Tue, 23 Nov 2010 09:13:43 +0000 (09:13 +0000)]
Fixed checks for --library option
git-svn-id: http://genscripts.googlecode.com/svn/trunk/gentoolkit@489
5234894e-44cd-11de-9a4c-
a76526a193c6
lis.slawek [Thu, 18 Nov 2010 11:16:57 +0000 (11:16 +0000)]
Fixed scanning revdep config; minor fix in analyse function
git-svn-id: http://genscripts.googlecode.com/svn/trunk/gentoolkit@485
5234894e-44cd-11de-9a4c-
a76526a193c6
lis.slawek [Thu, 18 Nov 2010 07:26:14 +0000 (07:26 +0000)]
Fixed problem with 32/64 bit libraries and binaries
git-svn-id: http://genscripts.googlecode.com/svn/trunk/gentoolkit@484
5234894e-44cd-11de-9a4c-
a76526a193c6
brian.dolbec [Fri, 5 Nov 2010 15:19:06 +0000 (15:19 +0000)]
Comment the NO_PRETEND variable better.
Fix a few minor grammar errors.
git-svn-id: http://genscripts.googlecode.com/svn/trunk/gentoolkit@478
5234894e-44cd-11de-9a4c-
a76526a193c6
brian.dolbec [Fri, 5 Nov 2010 05:26:11 +0000 (05:26 +0000)]
fix a missing leading space so that any args are not attached to the emerge command itself.
git-svn-id: http://genscripts.googlecode.com/svn/trunk/gentoolkit@477
5234894e-44cd-11de-9a4c-
a76526a193c6
lis.slawek [Mon, 25 Oct 2010 09:24:47 +0000 (09:24 +0000)]
Initial revision of revdep-rebuild python version
git-svn-id: http://genscripts.googlecode.com/svn/trunk/gentoolkit@471
5234894e-44cd-11de-9a4c-
a76526a193c6
brian.dolbec [Sun, 24 Oct 2010 19:44:19 +0000 (19:44 +0000)]
create a pkg for the new python revdep-rebuild.
git-svn-id: http://genscripts.googlecode.com/svn/trunk/gentoolkit@470
5234894e-44cd-11de-9a4c-
a76526a193c6
Paul Varner [Tue, 12 Jul 2011 14:28:06 +0000 (09:28 -0500)]
Update eclean man page to change deprecated to unavailable.
Paul Varner [Tue, 12 Jul 2011 14:03:52 +0000 (09:03 -0500)]
Change "Deprecated" to "unavailable" to reflect term used in portage.
Unavailable packages are packages that are installed, but do not have a
corresponding ebuild available for installation.
Paul Varner [Tue, 14 Jun 2011 05:49:18 +0000 (00:49 -0500)]
Fix spelling errors in equery.1 and euse.1 man pages. (Bug 371268)
Christian Ruppert [Sun, 29 May 2011 10:57:11 +0000 (12:57 +0200)]
Allow only one arg for --arch/-a
Allowing multiple args for -a/--arch causes some trouble (depending on the order)
E.g. "eshowkw cat/pkg -a a b" would work while "eshowkw -a a cat/pkg" wouldn't
because it would count cat/pkg to the -a/--arch option.
eshowkw -a amd64 kdelibs
No ebuilds at "/root"
Christian Ruppert [Sat, 28 May 2011 21:22:12 +0000 (23:22 +0200)]
Merge branch 'gentoolkit' of git+ssh://overlays.gentoo.org/proj/gentoolkit into gentoolkit
Paul Varner [Wed, 25 May 2011 00:55:03 +0000 (19:55 -0500)]
Change revdep-rebuild to no longer determine the build order. Instead
we call emerge with --complete-graph=y to build the packages in the
correct order.
Paul Varner [Mon, 23 May 2011 21:28:33 +0000 (16:28 -0500)]
Fix revdep-rebuild to use the ORDER_FILE for the final emerge command. Bug 368475
dol-sen [Mon, 23 May 2011 03:44:38 +0000 (20:44 -0700)]
fix the Dependencies.graph_depends() api return value not being correct.
dol-sen [Fri, 20 May 2011 05:26:09 +0000 (22:26 -0700)]
fix bug 368113 dupe'd USE flags
dol-sen [Fri, 20 May 2011 05:48:06 +0000 (22:48 -0700)]
Revert "uniqify the list of returned use flags in uses.py. Bug 368113"
in favour of fixing it at the source so all of gentoolkit's modules benefit.
This reverts commit
674776f13984d40a1cd7eb6929be81618708e1fa.
Paul Varner [Fri, 20 May 2011 05:27:17 +0000 (00:27 -0500)]
uniqify the list of returned use flags in uses.py. Bug 368113
dol-sen [Wed, 18 May 2011 21:17:19 +0000 (14:17 -0700)]
add keywords formatter option.
dol-sen [Tue, 17 May 2011 00:36:49 +0000 (17:36 -0700)]
found a better spot to set piping wrap width so as to disable for all piping regardless of the --no-pipe option which would turn off setting 'quiet' on.
Signed-off-by: dol-sen <brian.dolbec@gmail.com>
dol-sen [Mon, 16 May 2011 16:40:18 +0000 (09:40 -0700)]
add CONFIG['termWidth'] setting to the no-pipe option to effectively turn off textwraping.
This fixes issues with scripts parsing output.
dol-sen [Mon, 16 May 2011 16:38:02 +0000 (09:38 -0700)]
fix py3 compatibility issues in eshowkw.
Paul Varner [Thu, 12 May 2011 02:55:15 +0000 (21:55 -0500)]
Update setup.py for namespace change of analyse to enalyze
Paul Varner [Thu, 12 May 2011 02:52:13 +0000 (21:52 -0500)]
Merge branch 'gentoolkit' of git+ssh://git.overlays.gentoo.org/proj/gentoolkit into gentoolkit
Paul Varner [Thu, 12 May 2011 02:52:07 +0000 (21:52 -0500)]
Fix euse to treat PORTDIR the same as an overlay for purposes of printing the repository name.
dol-sen [Wed, 11 May 2011 06:46:34 +0000 (23:46 -0700)]
analyse namespace change to enalyze and standardize the spelling to use the 'z' variant.
Paul Varner [Wed, 11 May 2011 02:06:19 +0000 (21:06 -0500)]
Fix euse to print proper statement for egencache. Bug 366673
Paul Varner [Wed, 11 May 2011 00:43:20 +0000 (19:43 -0500)]
Change chmod 700 to chmod 600 when changing permissions on the cache files. Bug 356779
Brian Dolbec [Sun, 24 Apr 2011 00:59:32 +0000 (17:59 -0700)]
fix python-3 compatibility for euse bug 364081
Paul Varner [Mon, 18 Apr 2011 18:27:17 +0000 (13:27 -0500)]
Change eprefix.py to only look at portage for the value of EPREFIX
Brian Dolbec [Sun, 10 Apr 2011 18:22:07 +0000 (11:22 -0700)]
temporary fix for a test failure due to the added dotfiles check.
Need to add proper test data and checks for it.
Paul Varner [Thu, 31 Mar 2011 21:48:31 +0000 (16:48 -0500)]
Fix extend_realpaths in FileOwner class. (Bug 96515)
Removed the os.path.islink check since it oly returns true if the last
part of the path is a symbolic link. We want to add the realpath to the
list if it already doesn't exist in the list, since that indicates that
something in the path is a symbolic link.
Paul Varner [Tue, 29 Mar 2011 02:12:44 +0000 (21:12 -0500)]
Latest euse changes from Jared Hancock
Prefers /etc/portage/make.conf when modifing global flags only if it
defines the USE variable
Also fixes a bug where euse would refuse to add hyphenated use flags.
So you can:
euse -E bash-completion
Brian Dolbec [Fri, 18 Mar 2011 02:01:59 +0000 (19:01 -0700)]
add the Homepage to epkginfo/equery meta's Upstream option as per idl0r's request.
Brian Dolbec [Tue, 8 Mar 2011 08:05:36 +0000 (00:05 -0800)]
add a dotfile check and only delete hidden (.dotfile's) during a destructive search.