portage.git
15 years agoCleanup spinner before calling depgraph.display_problems().
Zac Medico [Sat, 4 Jul 2009 05:43:02 +0000 (05:43 -0000)]
Cleanup spinner before calling depgraph.display_problems().

svn path=/main/trunk/; revision=13770

15 years agoBug #275217 - Part 5 - When a slot conflict occurs, mask the first package
Zac Medico [Sat, 4 Jul 2009 05:32:59 +0000 (05:32 -0000)]
Bug #275217 - Part 5 - When a slot conflict occurs, mask the first package
that got pulled in and restart the calculation. Thanks to Sebastian Mingramm
(few) <s.mingramm@gmx.de> for the initial patch which I added some additional
features to:

 * display message about missed updates
 * cache frozen_config instance, to optimize performance
 * disable backtracking if it fails, fall back to a normal
   dep calculation + error message.

svn path=/main/trunk/; revision=13769

15 years agoDon't set RDEPEND=${RDEPEND-${DEPEND}} for EAPI=3 and simplify setting it for lower...
Arfrever Frehtes Taifersar Arahesis [Fri, 3 Jul 2009 21:26:07 +0000 (21:26 -0000)]
Don't set RDEPEND=${RDEPEND-${DEPEND}} for EAPI=3 and simplify setting it for lower EAPIs.

svn path=/main/trunk/; revision=13768

15 years agoImplement LazyItemsDict.pop() since dict.pop() bypasses our overridden
Zac Medico [Fri, 3 Jul 2009 20:29:39 +0000 (20:29 -0000)]
Implement LazyItemsDict.pop() since dict.pop()  bypasses our overridden
__getitem__ implementation. This fixes a problem with config.setcpv()
failing to set PORTAGE_REPO_NAME when appropriate. Thanks to Arfrever
for reporting.

svn path=/main/trunk/; revision=13767

15 years agoMake --help into an action, and move --help --sync output to the
Zac Medico [Fri, 3 Jul 2009 19:13:59 +0000 (19:13 -0000)]
Make --help into an action, and move --help --sync output to the
actions section. Thanks to Marat Radchenko <slonopotamusorama@gmail.com>
for this patch.

svn path=/main/trunk/; revision=13766

15 years agoMove "import copy" to the top of the file.
Zac Medico [Fri, 3 Jul 2009 18:34:45 +0000 (18:34 -0000)]
Move "import copy" to the top of the file.

svn path=/main/trunk/; revision=13765

15 years agoSkip PROVIDE conditional evaluation in PackageSet.iterAtomsForPackage(), since
Zac Medico [Fri, 3 Jul 2009 09:05:39 +0000 (09:05 -0000)]
Skip PROVIDE conditional evaluation in PackageSet.iterAtomsForPackage(), since
Package.metadata handles that automatically now.

svn path=/main/trunk/; revision=13764

15 years agoFix broken reference to _graph_trees.
Zac Medico [Fri, 3 Jul 2009 01:50:34 +0000 (01:50 -0000)]
Fix broken reference to _graph_trees.

svn path=/main/trunk/; revision=13763

15 years agoFix broken reference to self.myopts in the dynamic_config constructor.
Zac Medico [Fri, 3 Jul 2009 01:47:44 +0000 (01:47 -0000)]
Fix broken reference to self.myopts in the dynamic_config constructor.

svn path=/main/trunk/; revision=13762

15 years agoUse the new frozen_config depgraph constructor parameter to optimize
Zac Medico [Fri, 3 Jul 2009 01:32:12 +0000 (01:32 -0000)]
Use the new frozen_config depgraph constructor parameter to optimize
resume_depgraph().

svn path=/main/trunk/; revision=13761

15 years agoAdd a frozen_config parameter to the depgraph constructor, so that multiple
Zac Medico [Fri, 3 Jul 2009 01:29:41 +0000 (01:29 -0000)]
Add a frozen_config parameter to the depgraph constructor, so that multiple
depgraph instances created for backtracking purposes can reuse the same
frozen_config instance.

svn path=/main/trunk/; revision=13760

15 years agoUse depgraph._pkg() whenever possible.
Zac Medico [Fri, 3 Jul 2009 00:52:44 +0000 (00:52 -0000)]
Use depgraph._pkg() whenever possible.

svn path=/main/trunk/; revision=13759

15 years agoMove RootConfig.visible_pkgs to dynamic_config._visible_pkgs, so RootConfig
Zac Medico [Thu, 2 Jul 2009 23:56:18 +0000 (23:56 -0000)]
Move RootConfig.visible_pkgs to dynamic_config._visible_pkgs, so RootConfig
can be considered entirely "frozen".

svn path=/main/trunk/; revision=13758

15 years agoFix reversal in --nodeps merge order. Thanks to Michael Haubenwallner
Zac Medico [Thu, 2 Jul 2009 17:39:38 +0000 (17:39 -0000)]
Fix reversal in --nodeps merge order. Thanks to Michael Haubenwallner
<haubi@gentoo.org> for reporting.

svn path=/main/trunk/; revision=13757

15 years agoBug #275947 - Enable build.log when FEATURES=sesandbox is enabled, since
Zac Medico [Wed, 1 Jul 2009 20:47:58 +0000 (20:47 -0000)]
Bug #275947 - Enable build.log when FEATURES=sesandbox is enabled, since
it works when a pty is available (but not through a normal pipe, due to
bug #162404).

svn path=/main/trunk/; revision=13756

15 years agoFix broken references to depgraph._dynamic_config and _frozen_config in
Zac Medico [Wed, 1 Jul 2009 03:42:57 +0000 (03:42 -0000)]
Fix broken references to depgraph._dynamic_config and _frozen_config in
calc_depclean().

svn path=/main/trunk/; revision=13754

15 years agoFix typo from previous commit.
Zac Medico [Wed, 1 Jul 2009 00:28:28 +0000 (00:28 -0000)]
Fix typo from previous commit.

svn path=/main/trunk/; revision=13753

15 years agoFix depgraph._serialize_tasks so it never performa a needless uninstall task
Zac Medico [Wed, 1 Jul 2009 00:27:38 +0000 (00:27 -0000)]
Fix depgraph._serialize_tasks so it never performa a needless uninstall task
when a package in the same slot is scheduled to replace it.

svn path=/main/trunk/; revision=13752

15 years agoRemove obsolete blocker expansion code from _expand_new_virtuals.
Zac Medico [Tue, 30 Jun 2009 23:26:36 +0000 (23:26 -0000)]
Remove obsolete blocker expansion code from _expand_new_virtuals.

svn path=/main/trunk/; revision=13751

15 years agoAlways use dep_getkey() when using profile virtuals values, since at least
Zac Medico [Tue, 30 Jun 2009 23:22:52 +0000 (23:22 -0000)]
Always use dep_getkey() when using profile virtuals values, since at least
/profiles/base/virtuals contains an atom with an operator (virtual/pam maps
to >=sys-libs/pam-0.78).

svn path=/main/trunk/; revision=13750

15 years agoFix depgraph._resolve to do old-style virtual matches against package.provided
Zac Medico [Tue, 30 Jun 2009 23:03:34 +0000 (23:03 -0000)]
Fix depgraph._resolve to do old-style virtual matches against package.provided
when there is no other choice.

svn path=/main/trunk/; revision=13749

15 years agoFix _expand_new_virtuals to expand old-style virtuals for package.provided
Zac Medico [Tue, 30 Jun 2009 22:49:24 +0000 (22:49 -0000)]
Fix _expand_new_virtuals to expand old-style virtuals for package.provided
entries when there is no other choice.

svn path=/main/trunk/; revision=13748

15 years agoBug #275217 - Part 4 - Move all member variables of _emerge.depgraph into
Zac Medico [Tue, 30 Jun 2009 22:06:20 +0000 (22:06 -0000)]
Bug #275217 - Part 4 - Move all member variables of _emerge.depgraph into
frozen_config or dynamic_config. Thanks to Sebastian Mingramm (few)
<s.mingramm@gmx.de> for this patch.

svn path=/main/trunk/; revision=13747

15 years agoTweak depgraph._select_pkg_highest_available_imp to avoid more updates when
Zac Medico [Tue, 30 Jun 2009 21:46:22 +0000 (21:46 -0000)]
Tweak depgraph._select_pkg_highest_available_imp to avoid more updates when
in --avoid-update, by ignoring masked installed packages and packages for
which the ebuild is no longer available.

svn path=/main/trunk/; revision=13746

15 years agoBug #275945 - Add a new --avoid-update which tries to avoid updating packages
Zac Medico [Tue, 30 Jun 2009 21:33:42 +0000 (21:33 -0000)]
Bug #275945 - Add a new --avoid-update which tries to avoid updating packages
which possible. Thanks to Sebastian Mingramm (few) <s.mingramm@gmx.de> for
this patch.

svn path=/main/trunk/; revision=13745

15 years agoBug #275901 - Make emerge bail out for USE deps in EAPI 0 and 1.
Zac Medico [Tue, 30 Jun 2009 09:15:52 +0000 (09:15 -0000)]
Bug #275901 - Make emerge bail out for USE deps in EAPI 0 and 1.

svn path=/main/trunk/; revision=13743

15 years agoBug #82488 - In _expand_new_virtuals(), check PROVIDE before expanding
Zac Medico [Tue, 30 Jun 2009 04:39:07 +0000 (04:39 -0000)]
Bug #82488 - In _expand_new_virtuals(), check PROVIDE before expanding
old-style virtuals.

svn path=/main/trunk/; revision=13742

15 years agoIn _expand_new_virtuals, don't expand old-style virtuals when there is
Zac Medico [Tue, 30 Jun 2009 04:13:47 +0000 (04:13 -0000)]
In _expand_new_virtuals, don't expand old-style virtuals when there is
a new-style match.

svn path=/main/trunk/; revision=13741

15 years agoRemove the upgrade selection code inside dep_zapdeps (from bug #171840 and
Zac Medico [Tue, 30 Jun 2009 01:16:53 +0000 (01:16 -0000)]
Remove the upgrade selection code inside dep_zapdeps (from bug #171840 and
bug #159360) since the code in depgraph._dep_check_composite_db._visible()
from bug #253904 now masks choices that do not match the highest available
version in the slot. This means that such undesirable choices automatically
go into the dep_zapdeps "other" category.

svn path=/main/trunk/; revision=13740

15 years agoFix virtual blocker code inside _expand_new_virtuals to correctly handle
Zac Medico [Tue, 30 Jun 2009 00:01:08 +0000 (00:01 -0000)]
Fix virtual blocker code inside _expand_new_virtuals to correctly handle
!!atom blockers.

svn path=/main/trunk/; revision=13739

15 years agoUse a finally blocker to ensure _expand_new_virtuals properly resets eapi
Zac Medico [Mon, 29 Jun 2009 23:44:55 +0000 (23:44 -0000)]
Use a finally blocker to ensure _expand_new_virtuals properly resets eapi
state when an exception is raised.

svn path=/main/trunk/; revision=13738

15 years agoBug #275796 - Prefer packages selected for install over installed packages.
Zac Medico [Mon, 29 Jun 2009 23:34:42 +0000 (23:34 -0000)]
Bug #275796 - Prefer packages selected for install over installed packages.
This helps automatically solve cases such as the upgrade to the new bluez
package which requires uninstallation of the older bluez-libs and bluez-utils
packages. Thanks to Sebastian Mingramm (few) <s.mingramm@gmx.de> for this
patch.

svn path=/main/trunk/; revision=13737

15 years agoBug #275821 - Make emerge reject !!atom blockers for EAPI 0 and 1.
Zac Medico [Mon, 29 Jun 2009 23:03:19 +0000 (23:03 -0000)]
Bug #275821 - Make emerge reject !!atom blockers for EAPI 0 and 1.

svn path=/main/trunk/; revision=13736

15 years agoMove code from bug #258773 to dep_zapdeps, since the parent always needs to
Zac Medico [Mon, 29 Jun 2009 22:41:55 +0000 (22:41 -0000)]
Move code from bug #258773 to dep_zapdeps, since the parent always needs to
be passed in for atom validation in order to solve bug #275821.

svn path=/main/trunk/; revision=13735

15 years agoPrepare 41 messages to localization.
Arfrever Frehtes Taifersar Arahesis [Mon, 29 Jun 2009 11:23:09 +0000 (11:23 -0000)]
Prepare 41 messages to localization.

svn path=/main/trunk/; revision=13733

15 years agoAdd missing resume_depgraph import, and remove unused imports.
Zac Medico [Sun, 28 Jun 2009 22:59:49 +0000 (22:59 -0000)]
Add missing resume_depgraph import, and remove unused imports.

svn path=/main/trunk/; revision=13732

15 years agoFix constructor to avoid TypeError when the "perms" keyword parameter is given.
Zac Medico [Sun, 28 Jun 2009 21:14:11 +0000 (21:14 -0000)]
Fix constructor to avoid TypeError when the "perms" keyword parameter is given.

svn path=/main/trunk/; revision=13731

15 years agoBug #253467 - Fix regression in config._env_blacklist handling.
Zac Medico [Sun, 28 Jun 2009 20:59:49 +0000 (20:59 -0000)]
Bug #253467 - Fix regression in config._env_blacklist handling.

svn path=/main/trunk/; revision=13730

15 years agoFix Package.metadata USE conditional evaluation so that it's delayed until
Zac Medico [Sun, 28 Jun 2009 20:37:50 +0000 (20:37 -0000)]
Fix Package.metadata USE conditional evaluation so that it's delayed until
after config.setcpv() has calculated PORTAGE_USE. Thanks to Arfrever for
reporting.

svn path=/main/trunk/; revision=13729

15 years agoUse Package.invalid to generate *.syntax repoman errors for LICENSE,
Zac Medico [Sun, 28 Jun 2009 19:40:39 +0000 (19:40 -0000)]
Use Package.invalid to generate *.syntax repoman errors for LICENSE,
PROPERTIES, PROVIDE, and RESTRICT.

svn path=/main/trunk/; revision=13728

15 years agoMake Package.invalid suitable for use by repoman.
Zac Medico [Sun, 28 Jun 2009 19:03:33 +0000 (19:03 -0000)]
Make Package.invalid suitable for use by repoman.

svn path=/main/trunk/; revision=13726

15 years agoCheck for redundant blank lines. Thanks to Markus Meier <maekke@gentoo.org>
Zac Medico [Sun, 28 Jun 2009 18:40:05 +0000 (18:40 -0000)]
Check for redundant blank lines. Thanks to Markus Meier <maekke@gentoo.org>
for this patch.

svn path=/main/trunk/; revision=13725

15 years agoBug #236786 - Warn about 'test?' USE conditionals in RDEPEND. Thanks to
Zac Medico [Sun, 28 Jun 2009 18:24:23 +0000 (18:24 -0000)]
Bug #236786 - Warn about 'test?' USE conditionals in RDEPEND. Thanks to
Markus Meier <maekke@gentoo.org> for this patch.

svn path=/main/trunk/; revision=13724

15 years agomake sure etc-update sorts updates in the order (1) leading dir path (2) filename...
Mike Frysinger [Sun, 28 Jun 2009 16:12:28 +0000 (16:12 -0000)]
make sure etc-update sorts updates in the order (1) leading dir path (2) filename (3) cfg update

svn path=/main/trunk/; revision=13723

15 years ago* Add new abstract PhaseCheck class for ebuild phase-specific checks.
Zac Medico [Sun, 28 Jun 2009 08:08:54 +0000 (08:08 -0000)]
* Add new abstract PhaseCheck class for ebuild phase-specific checks.
* Reimplement SrcUnpackPatches using PhaseCheck.
* Add new SrcCompileEconf, Eapi3IncompatibleFuncs, and Eapi3GoneVars checks.
Thanks to Markus Meier <maekke@gentoo.org> for this patch.

svn path=/main/trunk/; revision=13717

15 years agoBug #270953 - New !!atom blockers do not allow temporary simulaneous
Zac Medico [Sat, 27 Jun 2009 19:39:46 +0000 (19:39 -0000)]
Bug #270953 - New !!atom blockers do not allow temporary simulaneous
installation, so unlike !atom blockers, !!atom blockers aren't ignored
when they match other packages occupying the same slot. Thanks to
Sebastian Mingramm (few) <s.mingramm@gmx.de> for the initial patch.

svn path=/main/trunk/; revision=13716

15 years agoUse a property to implement portdbapi.settings.
Zac Medico [Fri, 26 Jun 2009 23:38:01 +0000 (23:38 -0000)]
Use a property to implement portdbapi.settings.

svn path=/main/trunk/; revision=13703

15 years agoFix PROVIDE code since the Package class automatically evaluates USE
Zac Medico [Fri, 26 Jun 2009 23:01:46 +0000 (23:01 -0000)]
Fix PROVIDE code since the Package class automatically evaluates USE
conditionals now.

svn path=/main/trunk/; revision=13702

15 years agoMake portdbapi define self.settings, for conformity with other dbapi classes.
Zac Medico [Fri, 26 Jun 2009 22:43:39 +0000 (22:43 -0000)]
Make portdbapi define self.settings, for conformity with other dbapi classes.

svn path=/main/trunk/; revision=13701

15 years agoUse clear_caches() to free memory inside action_depclean().
Zac Medico [Fri, 26 Jun 2009 21:37:17 +0000 (21:37 -0000)]
Use clear_caches() to free memory inside action_depclean().

svn path=/main/trunk/; revision=13700

15 years agoBug #275532 - In action_depclean(), free memory from the dep calculation
Zac Medico [Fri, 26 Jun 2009 21:32:01 +0000 (21:32 -0000)]
Bug #275532 - In action_depclean(), free memory from the dep calculation
before calling unmerge().

svn path=/main/trunk/; revision=13699

15 years agoMove __init__.py to main.py.
Zac Medico [Fri, 26 Jun 2009 20:10:06 +0000 (20:10 -0000)]
Move __init__.py to main.py.

svn path=/main/trunk/; revision=13698

15 years agoMove __init__.py to main.py.
Zac Medico [Fri, 26 Jun 2009 20:06:08 +0000 (20:06 -0000)]
Move __init__.py to main.py.

svn path=/main/trunk/; revision=13697

15 years agoUse @property instead of __getattribute__ to implement lazy Package.iuse.regex
Zac Medico [Thu, 25 Jun 2009 21:59:58 +0000 (21:59 -0000)]
Use @property instead of __getattribute__ to implement lazy Package.iuse.regex
initialization.

svn path=/main/trunk/; revision=13696

15 years agoMake dbapi.cp_list() raise NotImplementedError.
Zac Medico [Thu, 25 Jun 2009 21:24:30 +0000 (21:24 -0000)]
Make dbapi.cp_list() raise NotImplementedError.

svn path=/main/trunk/; revision=13695

15 years agoMake config.regenerate() detect api-level updates to ACCEPT_LICENSE, for use
Zac Medico [Thu, 25 Jun 2009 19:41:48 +0000 (19:41 -0000)]
Make config.regenerate() detect api-level updates to ACCEPT_LICENSE, for use
in implementing the "free" filter for the packagekit backend.

svn path=/main/trunk/; revision=13694

15 years agoAdd a Package.metadata.restrict attribute containing a list of enabled
Zac Medico [Thu, 25 Jun 2009 06:35:25 +0000 (06:35 -0000)]
Add a Package.metadata.restrict attribute containing a list of enabled
RESTRICT values.

svn path=/main/trunk/; revision=13693

15 years agoAdd a Package.metadata.properties attribute containing a list of enabled
Zac Medico [Thu, 25 Jun 2009 06:24:33 +0000 (06:24 -0000)]
Add a Package.metadata.properties attribute containing a list of enabled
PROPERTIES values.

svn path=/main/trunk/; revision=13692

15 years ago* Add a Package.invalid attribute to store messages about invalid LICENSE,
Zac Medico [Thu, 25 Jun 2009 06:06:14 +0000 (06:06 -0000)]
* Add a Package.invalid attribute to store messages about invalid LICENSE,
  PROPERTIES, PROVIDE, and RESTRICT metadata. Use it to mask invalid packages
  when necessary.
* Evaluate USE conditional values in Package.metadata when the are accessed.

svn path=/main/trunk/; revision=13691

15 years agoAdd/update copyright headers.
Zac Medico [Thu, 25 Jun 2009 04:13:47 +0000 (04:13 -0000)]
Add/update copyright headers.

svn path=/main/trunk/; revision=13690

15 years agoSplit out a depgraph._iter_match_pkgs() method from
Zac Medico [Thu, 25 Jun 2009 03:04:43 +0000 (03:04 -0000)]
Split out a depgraph._iter_match_pkgs() method from
_select_pkg_highest_available_imp().

svn path=/main/trunk/; revision=13689

15 years agoUse depgraph._pkg() to construct Package instances inside
Zac Medico [Thu, 25 Jun 2009 01:53:58 +0000 (01:53 -0000)]
Use depgraph._pkg() to construct Package instances inside
_select_pkg_highest_available_imp().

svn path=/main/trunk/; revision=13688

15 years agoRemove obsolete Package.metadata['CHOST'] initialization.
Zac Medico [Thu, 25 Jun 2009 00:45:05 +0000 (00:45 -0000)]
Remove obsolete Package.metadata['CHOST'] initialization.

svn path=/main/trunk/; revision=13687

15 years ago* Make Package.metadata['USE'] access trigger USE calculation for unbuilt
Zac Medico [Thu, 25 Jun 2009 00:33:47 +0000 (00:33 -0000)]
* Make Package.metadata['USE'] access trigger USE calculation for unbuilt
  ebuilds.
* Make Package.metadata['LICENSE'] access trigger USE conditional evaluation.
* Make Package.metadata['PROVIDE'] access trigger USE conditional evaluation.
* Initialize Package.metadata['CHOST'] in the Package constructor for
  unbuilt ebuilds.

svn path=/main/trunk/; revision=13686

15 years agoBug #275217 - Part 3 - Splits depgraph.select_files into select_files and
Zac Medico [Wed, 24 Jun 2009 21:07:50 +0000 (21:07 -0000)]
Bug #275217 - Part 3 - Splits depgraph.select_files into select_files and
_resolve. Thanks to Sebastian Mingramm (few) <s.mingramm@gmx.de> for this
patch.

svn path=/main/trunk/; revision=13685

15 years agoAdd support to `portageq owners` for querying paths matching a given basename.
Zac Medico [Wed, 24 Jun 2009 07:12:40 +0000 (07:12 -0000)]
Add support to `portageq owners` for querying paths matching a given basename.
It is natural to support this since the vartree already maintains a basename
-> owner index anyway. There are plans for the packagekit backend is to
support this type of search.

svn path=/main/trunk/; revision=13681

15 years agoIn binarytree.inject(), when a symlink is created for the current package
Zac Medico [Wed, 24 Jun 2009 06:47:57 +0000 (06:47 -0000)]
In binarytree.inject(), when a symlink is created for the current package
and it overwrites another package, delete the corresponding metadata from
the Packages file. Thanks to Eitan Mosenkis <eitan@mosenkis.net> for
reporting.

svn path=/main/trunk/; revision=13680

15 years agoBug #275237 - If a directory exists in a location where a normal file is to
Zac Medico [Wed, 24 Jun 2009 03:18:01 +0000 (03:18 -0000)]
Bug #275237 - If a directory exists in a location where a normal file is to
be merged, generate a config-protect filename for the file and merge it that
way. Thanks to Jonas Bernoulli <jonas@bernoulli.cc> for this patch.

svn path=/main/trunk/; revision=13679

15 years agoFix imports for _emerge submodules.
Zac Medico [Tue, 23 Jun 2009 21:25:19 +0000 (21:25 -0000)]
Fix imports for _emerge submodules.

svn path=/main/trunk/; revision=13678

15 years agoBug #275217 - Part 2 - Move changelog stuff stuff out of depgraph.
Zac Medico [Tue, 23 Jun 2009 20:44:49 +0000 (20:44 -0000)]
Bug #275217 - Part 2 - Move changelog stuff stuff out of depgraph.
Thanks to Sebastian Mingramm (few) <s.mingramm@gmx.de> for this patch.

svn path=/main/trunk/; revision=13677

15 years agoBu #275217 - Part 1 - Resolve the circular dep between Scheduler and
Zac Medico [Tue, 23 Jun 2009 20:38:40 +0000 (20:38 -0000)]
Bu #275217 - Part 1 - Resolve the circular dep between Scheduler and
depgraph; mark all functions as local that aren't used outside of depgraph.
Thanks to Sebastian Mingramm (few) <s.mingramm@gmx.de> for this patch.

svn path=/main/trunk/; revision=13676

15 years agoFix import for split _emerge.MetadataRegen module.
Zac Medico [Tue, 23 Jun 2009 20:11:24 +0000 (20:11 -0000)]
Fix import for split _emerge.MetadataRegen module.

svn path=/main/trunk/; revision=13675

15 years agoMake the global "actions" variable a local inside parse_opts() since the
Zac Medico [Tue, 23 Jun 2009 19:10:12 +0000 (19:10 -0000)]
Make the global "actions" variable a local inside parse_opts() since the
name collision with the _emerge.actions module triggers this traceback with
epydoc-3.0.1:

Traceback (most recent call last):
  File "/usr/bin/epydoc", line 13, in <module>
    cli()
  File "/usr/lib/python2.6/site-packages/epydoc/cli.py", line 965, in cli
    main(options, names)
  File "/usr/lib/python2.6/site-packages/epydoc/cli.py", line 757, in main
    exclude_parse=exclude_parse)
  File "/usr/lib/python2.6/site-packages/epydoc/docbuilder.py", line 235, in build_doc_index
    docindex = DocIndex(docs)
  File "/usr/lib/python2.6/site-packages/epydoc/apidoc.py", line 1715, in __init__
    raise ValueError("All APIdocs passed to DocIndexer "
ValueError: All APIdocs passed to DocIndexer must already have canonical names.

svn path=/main/trunk/; revision=13674

15 years agoBug #275047 - Split _emerge/__init__.py into smaller pieces (part 6).
Zac Medico [Tue, 23 Jun 2009 18:52:20 +0000 (18:52 -0000)]
Bug #275047 - Split _emerge/__init__.py into smaller pieces (part 6).
Thanks to Sebastian Mingramm (few) <s.mingramm@gmx.de> for this patch.

svn path=/main/trunk/; revision=13673

15 years agoBug #275047 - Split _emerge/__init__.py into smaller pieces (part 5).
Zac Medico [Tue, 23 Jun 2009 18:46:38 +0000 (18:46 -0000)]
Bug #275047 - Split _emerge/__init__.py into smaller pieces (part 5).
Thanks to Sebastian Mingramm (few) <s.mingramm@gmx.de> for this patch.

svn path=/main/trunk/; revision=13672

15 years agoFix config._lazy_vars._accept_license() to exclude irrelevant licenses.
Zac Medico [Mon, 22 Jun 2009 21:40:34 +0000 (21:40 -0000)]
Fix config._lazy_vars._accept_license() to exclude irrelevant licenses.

svn path=/main/trunk/; revision=13671

15 years agoChange ACCEPT_LICENSE evaluation so that things like ACCEPT_LICENSE="* -@EULA"
Zac Medico [Mon, 22 Jun 2009 21:31:44 +0000 (21:31 -0000)]
Change ACCEPT_LICENSE evaluation so that things like ACCEPT_LICENSE="* -@EULA"
will work as expected. The ACCEPT_LICENSE variable is now treated as a lazily
evaluated incremental, so that * can be used to match all licenses without
every having to explicitly expand it to all licenses. It should now behave
as approved by the council in response to the "RFC: ACCEPT_LICENSE default
value (GLEP 23)" discussion:

  http://archives.gentoo.org/gentoo-dev/msg_d5c1e7285399ebc27a74bdd02cb4d037.xml

svn path=/main/trunk/; revision=13670

15 years agoBug #275047 - Split _emerge/__init__.py into smaller pieces (part 4).
Zac Medico [Mon, 22 Jun 2009 20:02:48 +0000 (20:02 -0000)]
Bug #275047 - Split _emerge/__init__.py into smaller pieces (part 4).
Thanks to Sebastian Mingramm (few) <s.mingramm@gmx.de> for this patch.

svn path=/main/trunk/; revision=13669

15 years agoBug #275047 - Split _emerge/__init__.py into smaller pieces (part 3).
Zac Medico [Mon, 22 Jun 2009 18:47:26 +0000 (18:47 -0000)]
Bug #275047 - Split _emerge/__init__.py into smaller pieces (part 3).
Thanks to Sebastian Mingramm (few) <s.mingramm@gmx.de> for this patch.

svn path=/main/trunk/; revision=13668

15 years agoBug #275047 - Split _emerge/__init__.py into smaller pieces (part 2).
Zac Medico [Mon, 22 Jun 2009 18:21:56 +0000 (18:21 -0000)]
Bug #275047 - Split _emerge/__init__.py into smaller pieces (part 2).
Thanks to Sebastian Mingramm (few) <s.mingramm@gmx.de> for this patch.

svn path=/main/trunk/; revision=13667

15 years agoRevert lazy imports from r13665 for now, since pyflakes doesn't understand
Zac Medico [Mon, 22 Jun 2009 18:12:37 +0000 (18:12 -0000)]
Revert lazy imports from r13665 for now, since pyflakes doesn't understand
them, and pyflakes helps check stuff while we're splitting this file up.

svn path=/main/trunk/; revision=13666

15 years agoUse lazy imports for submodules where possible.
Zac Medico [Mon, 22 Jun 2009 17:28:19 +0000 (17:28 -0000)]
Use lazy imports for submodules where possible.

svn path=/main/trunk/; revision=13665

15 years agoFix imports broken by splitting of _emerge/__init__.py.
Zac Medico [Mon, 22 Jun 2009 17:03:37 +0000 (17:03 -0000)]
Fix imports broken by splitting of _emerge/__init__.py.

svn path=/main/trunk/; revision=13664

15 years agoBug #275047 - Split _emerge/__init__.py into smaller pieces. Thanks to
Zac Medico [Mon, 22 Jun 2009 16:43:52 +0000 (16:43 -0000)]
Bug #275047 - Split _emerge/__init__.py into smaller pieces. Thanks to
Sebastian Mingramm (few) <s.mingramm@gmx.de> for this patch.

svn path=/main/trunk/; revision=13663

15 years agoUse portage.util.apply_permissions() inside _ensure_access().
Zac Medico [Mon, 22 Jun 2009 05:07:45 +0000 (05:07 -0000)]
Use portage.util.apply_permissions() inside _ensure_access().

svn path=/main/trunk/; revision=13662

15 years agoReorganize $KV logic in doebuild_environment.
Zac Medico [Mon, 22 Jun 2009 04:12:26 +0000 (04:12 -0000)]
Reorganize $KV logic in doebuild_environment.

svn path=/main/trunk/; revision=13661

15 years agoTweak depcache permission handling so egencache can be run by a user who's
Zac Medico [Sun, 21 Jun 2009 22:01:50 +0000 (22:01 -0000)]
Tweak depcache permission handling so egencache can be run by a user who's
not in the portage group, allowing for better privilege isolation.

svn path=/main/trunk/; revision=13660

15 years agoBug #274742 - Exempt $dir from quoting checks since it's a likely candidate
Zac Medico [Sun, 21 Jun 2009 01:51:42 +0000 (01:51 -0000)]
Bug #274742 - Exempt $dir from quoting checks since it's a likely candidate
for false positives.

svn path=/main/trunk/; revision=13659

15 years agoIn doebuild_environment, ensure that cached $KV from the backupenv does not
Zac Medico [Sat, 20 Jun 2009 23:42:31 +0000 (23:42 -0000)]
In doebuild_environment, ensure that cached $KV from the backupenv does not
leak into the environment for EAPI >= 3.

svn path=/main/trunk/; revision=13658

15 years agoFactor duplicate code out of depgraph._add_pkg and _pop_disjunction.
Zac Medico [Sat, 20 Jun 2009 19:16:51 +0000 (19:16 -0000)]
Factor duplicate code out of depgraph._add_pkg and _pop_disjunction.

svn path=/main/trunk/; revision=13657

15 years agoDon't set KV for EAPI >=3.
Arfrever Frehtes Taifersar Arahesis [Sat, 20 Jun 2009 18:53:01 +0000 (18:53 -0000)]
Don't set KV for EAPI >=3.

svn path=/main/trunk/; revision=13656

15 years agoBug #264434 - Delay evaluation of all disjunctive (virtual and ||)
Zac Medico [Fri, 19 Jun 2009 20:19:30 +0000 (20:19 -0000)]
Bug #264434 - Delay evaluation of all disjunctive (virtual and ||)
dependencies. Evaluting disjuctions as late as possible allows better
decisions since the graph is more complete when the decisions are made.
Thanks to Sebastian Mingramm (few) <s.mingramm@gmx.de> for the initial
patch.

svn path=/main/trunk/; revision=13655

15 years agoAdd a EMERGE_LOG_DIR variable to control the location of emerge.log and
Zac Medico [Thu, 18 Jun 2009 19:55:17 +0000 (19:55 -0000)]
Add a EMERGE_LOG_DIR variable to control the location of emerge.log and
emerge-fetch.log. This was requested by Eitan Mosenkis <eitan@mosenkis.net>
for use in his 'online image builder' soc project.

svn path=/main/trunk/; revision=13652

15 years agoAllow missing ChangeLog when using git. We don't use ChangeLogs in
Zac Medico [Wed, 17 Jun 2009 22:04:43 +0000 (22:04 -0000)]
Allow missing ChangeLog when using git. We don't use ChangeLogs in
distributed SCMs. It will be generated on server side from scm log,
before package moves to the rsync server. This is needed because we
try to avoid merge collisions. Thanks to Tomas Chvatal
<scarabeus@gentoo.org> for this patch.

svn path=/main/trunk/; revision=13651

15 years agoWhen --pretend overrides --ask, don't show any output.
Zac Medico [Wed, 17 Jun 2009 20:50:05 +0000 (20:50 -0000)]
When --pretend overrides --ask, don't show any output.

svn path=/main/trunk/; revision=13650

15 years agoAdd NOCOLOR to the environment whitelist. This fixes inappropriate colors
Zac Medico [Wed, 17 Jun 2009 20:05:03 +0000 (20:05 -0000)]
Add NOCOLOR to the environment whitelist. This fixes inappropriate colors
produced by elog functions. Thanks to Luis F. Araujo <araujo@gentoo.org>
for reporting.

svn path=/main/trunk/; revision=13649

15 years agoRename color_codes back to codes.
Zac Medico [Wed, 17 Jun 2009 19:31:57 +0000 (19:31 -0000)]
Rename color_codes back to codes.

svn path=/main/trunk/; revision=13648

15 years agoRename codes to _styles.
Zac Medico [Wed, 17 Jun 2009 19:27:20 +0000 (19:27 -0000)]
Rename codes to _styles.

svn path=/main/trunk/; revision=13647

15 years agoRename map_code_to_color_code() to style_to_ansi_code().
Zac Medico [Wed, 17 Jun 2009 18:59:14 +0000 (18:59 -0000)]
Rename map_code_to_color_code() to style_to_ansi_code().

svn path=/main/trunk/; revision=13646

15 years agoAdd epydoc docstrings fro codes and color_codes variables.
Zac Medico [Wed, 17 Jun 2009 18:34:43 +0000 (18:34 -0000)]
Add epydoc docstrings fro codes and color_codes variables.

svn path=/main/trunk/; revision=13645