portage.git
15 years agoTweak arguments for <python-2.6 compat.
Zac Medico [Thu, 9 Jul 2009 07:04:28 +0000 (07:04 -0000)]
Tweak arguments for <python-2.6 compat.

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

15 years agoMake -j argument handling more generic, so it's easy to add similar arguments
Zac Medico [Thu, 9 Jul 2009 06:11:17 +0000 (06:11 -0000)]
Make -j argument handling more generic, so it's easy to add similar arguments
(planning to add support for integer -D/--deep arguments).

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

15 years agoUse a dict for depgraph params, so we can use it to store key/value pairs
Zac Medico [Thu, 9 Jul 2009 04:57:55 +0000 (04:57 -0000)]
Use a dict for depgraph params, so we can use it to store key/value pairs
and fix the depgraph so it doesn't use emerge options directly.

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

15 years agoAdd a --debug warning message inside _add_pkg in case a potentially infinite
Zac Medico [Wed, 8 Jul 2009 22:02:17 +0000 (22:02 -0000)]
Add a --debug warning message inside _add_pkg in case a potentially infinite
backtracking loop is detected (it should never happen).

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

15 years agoDocument the --selective option.
Zac Medico [Wed, 8 Jul 2009 21:41:01 +0000 (21:41 -0000)]
Document the --selective option.

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

15 years agoFix --selective so it works.
Zac Medico [Wed, 8 Jul 2009 20:05:14 +0000 (20:05 -0000)]
Fix --selective so it works.

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

15 years agoBug #276957 - Fix dropped "in graph" choice for runtime deps inside dep_zapdeps.
Zac Medico [Tue, 7 Jul 2009 20:47:28 +0000 (20:47 -0000)]
Bug #276957 - Fix dropped "in graph" choice for runtime deps inside dep_zapdeps.

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

15 years agoShorten the preserved libs message when in --quiet mode. Thanks to Sebastian
Zac Medico [Tue, 7 Jul 2009 09:11:39 +0000 (09:11 -0000)]
Shorten the preserved libs message when in --quiet mode. Thanks to Sebastian
Mingramm (few) <s.mingramm@gmx.de> for this patch.

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

15 years agoBug #276866 - --binpkg-respect-use < y | n >
Zac Medico [Tue, 7 Jul 2009 08:52:08 +0000 (08:52 -0000)]
Bug #276866 - --binpkg-respect-use < y | n >
Tells emerge to ignore binary packages if their use flags don't match the
current configuration. (default: ´n´)
Thanks to Sebastian Mingramm (few) <s.mingramm@gmx.de> for this patch
(small tweaks by me).

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

15 years agoOptimize dbapi._iter_match_use() so that it shares a single compiled regex
Zac Medico [Mon, 6 Jul 2009 21:56:27 +0000 (21:56 -0000)]
Optimize dbapi._iter_match_use() so that it shares a single compiled regex
for all implicit iuse checks. This avoids lots of expensibe re.compile()
calls. Thanks to Marat Radchenko <slonopotamusorama@gmail.com> for the
initial patch.

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

15 years agoBug #273640 - Add --disable-dependency-tracking to econf arguments for
Zac Medico [Mon, 6 Jul 2009 20:38:13 +0000 (20:38 -0000)]
Bug #273640 - Add --disable-dependency-tracking to econf arguments for
EAPI 3. Thanks to Markus Meier <maekke@gentoo.org> for this patch.

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

15 years agoBug #273622 - Add pkg_pretend support for the ebuild(1) command (emerge
Zac Medico [Mon, 6 Jul 2009 20:23:57 +0000 (20:23 -0000)]
Bug #273622 - Add pkg_pretend support for the ebuild(1) command (emerge
support not implemented yet). Thanks to Markus Meier <maekke@gentoo.org>
for this patch.

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

15 years agoBug #273631 - Add default src_install implementation for EAPI 3. Thanks to
Zac Medico [Mon, 6 Jul 2009 20:17:12 +0000 (20:17 -0000)]
Bug #273631 - Add default src_install implementation for EAPI 3. Thanks to
Markus Meier <maekke@gentoo.org> for this patch (and people in #gentoo-portage
for bash syntax tweaks).

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

15 years agoUse PackageSet.findAtomForPackage() when matching the existing node against
Zac Medico [Mon, 6 Jul 2009 07:15:01 +0000 (07:15 -0000)]
Use PackageSet.findAtomForPackage() when matching the existing node against
the atom inside _select_pkg_highest_available_imp(), for PROVIDE support.

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

15 years agoAlways exit unsuccessfully if there are any failures.
Zac Medico [Mon, 6 Jul 2009 02:39:56 +0000 (02:39 -0000)]
Always exit unsuccessfully if there are any failures.

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

15 years agoHardcode utf_8 encoding inside _setitem().
Zac Medico [Sun, 5 Jul 2009 22:09:50 +0000 (22:09 -0000)]
Hardcode utf_8 encoding inside _setitem().

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

15 years agoAssume utf_8 encoding in alls reads/writes (unicode handling required for py3k).
Zac Medico [Sun, 5 Jul 2009 21:40:28 +0000 (21:40 -0000)]
Assume utf_8 encoding in alls reads/writes (unicode handling required for py3k).

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

15 years agoFix broken reference to possible_upgrades inside dep_zapdeps().
Zac Medico [Sun, 5 Jul 2009 21:01:58 +0000 (21:01 -0000)]
Fix broken reference to possible_upgrades inside dep_zapdeps().

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

15 years agoMake sure avoid_update always returns existing_node if available.
Zac Medico [Sun, 5 Jul 2009 20:44:53 +0000 (20:44 -0000)]
Make sure avoid_update always returns existing_node if available.

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

15 years agoBug #276264 - Note that eclass-overrides may make it necessary to set
Zac Medico [Sun, 5 Jul 2009 10:39:50 +0000 (10:39 -0000)]
Bug #276264 - Note that eclass-overrides may make it necessary to set
PORTAGE_RSYNC_EXTRA_OPTS="--exclude=/metadata/cache" in make.conf.

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

15 years agoRemove set operator support since the current implementation does not meet
Zac Medico [Sun, 5 Jul 2009 09:34:16 +0000 (09:34 -0000)]
Remove set operator support since the current implementation does not meet
user expectations, as mentioned in bug #253802, comment #5:

Package set operators currently operate on atoms, but what users really need
is for them to operate on the packages themselves. This will allow one set to
add or subtract packages from another even though the sets to not use the exact
same atoms to refer to the given packages.

I imagine the way this should be done is to create a mapping of atom -> package
for each set, perform the intersection using the packages, and then map the
package intersection back into a set of atoms.

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

15 years agoMake dblink.setfile() write environment.bz2 in binary mode.
Zac Medico [Sat, 4 Jul 2009 20:33:46 +0000 (20:33 -0000)]
Make dblink.setfile() write environment.bz2 in binary mode.

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

15 years agoAssume utf_8 encoding when reading raw ebuild metadata.
Zac Medico [Sat, 4 Jul 2009 20:20:43 +0000 (20:20 -0000)]
Assume utf_8 encoding when reading raw ebuild metadata.

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

15 years agoRemove the workaround from bug #263081 since most strings should be unicode
Zac Medico [Sat, 4 Jul 2009 19:57:22 +0000 (19:57 -0000)]
Remove the workaround from bug #263081 since most strings should be unicode
now.

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

15 years agoMake atomic_ofstream() use codecs.open() for py3k compatible unicode handling
Zac Medico [Sat, 4 Jul 2009 19:55:12 +0000 (19:55 -0000)]
Make atomic_ofstream() use codecs.open() for py3k compatible unicode handling
when mode does not contain 'b'.

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

15 years agoMake grablines() use codecs.open() for py3k compatible unicode handling.
Zac Medico [Sat, 4 Jul 2009 19:33:30 +0000 (19:33 -0000)]
Make grablines() use codecs.open() for py3k compatible unicode handling.

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

15 years agoMake code from previous commit safe for empty files.
Zac Medico [Sat, 4 Jul 2009 19:31:21 +0000 (19:31 -0000)]
Make code from previous commit safe for empty files.

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

15 years agoMake getconfig() use codecs.option() for py3k compatible unicode handling.
Zac Medico [Sat, 4 Jul 2009 19:25:42 +0000 (19:25 -0000)]
Make getconfig() use codecs.option() for py3k compatible unicode handling.

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

15 years agoAs a performance optimization, use StringIO instead of _insert_newline_eof to
Zac Medico [Sat, 4 Jul 2009 19:16:35 +0000 (19:16 -0000)]
As a performance optimization, use StringIO instead of _insert_newline_eof to
solve bug #228117. Thanks to Marat Radchenko <slonopotamusorama@gmail.com>
for this patch.

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

15 years agoCorrect --help usage since it no longer takes system, world, or --sync as
Zac Medico [Sat, 4 Jul 2009 19:11:51 +0000 (19:11 -0000)]
Correct --help usage since it no longer takes system, world, or --sync as
input. Thanks to Marat Radchenko <slonopotamusorama@gmail.com> for this patch.

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

15 years agoCorrect --help usage since it no longer takes system, world, or --sync as
Zac Medico [Sat, 4 Jul 2009 19:08:41 +0000 (19:08 -0000)]
Correct --help usage since it no longer takes system, world, or --sync as
input. Thanks to Marat Radchenko <slonopotamusorama@gmail.com> for this patch.

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

15 years agoUpdate help() usage since the myopts parameter is gone. Thanks to
Zac Medico [Sat, 4 Jul 2009 19:06:04 +0000 (19:06 -0000)]
Update help() usage since the myopts parameter is gone. Thanks to
Marat Radchenko <slonopotamusorama@gmail.com> for this patch.

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

15 years agoDon't pass myopts into profile_check() since it's no longer needed. Thanks to
Zac Medico [Sat, 4 Jul 2009 09:25:43 +0000 (09:25 -0000)]
Don't pass myopts into profile_check() since it's no longer needed. Thanks to
Radchenko <slonopotamusorama@gmail.com> for this patch.

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

15 years agoDelete runtime_pkg_mask to avoid memory leak.
Zac Medico [Sat, 4 Jul 2009 08:42:59 +0000 (08:42 -0000)]
Delete runtime_pkg_mask to avoid memory leak.

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

15 years agoMake LazyItemsDict derive from UserDict instead of dict so that we don't have
Zac Medico [Sat, 4 Jul 2009 06:23:56 +0000 (06:23 -0000)]
Make LazyItemsDict derive from UserDict instead of dict so that we don't have
to implement the pop method (and possibly others such as setdefault).

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

15 years agoRemove the --avoid-update option and make it the default behavior when
Zac Medico [Sat, 4 Jul 2009 06:13:04 +0000 (06:13 -0000)]
Remove the --avoid-update option and make it the default behavior when
--update is not specified, as suggested by Allen Brooker (AllenJB)
<gentoo-bugs@allenjb.me.uk> in bug #275945, comment #2.

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

15 years agoDisable depgraph._show_missed_update() when --quiet is enabled and --debug
Zac Medico [Sat, 4 Jul 2009 05:59:59 +0000 (05:59 -0000)]
Disable depgraph._show_missed_update() when --quiet is enabled and --debug
is not enabled.

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

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