portage.git
16 years agoWhen backtracking due to an unsatisfied dependency, show a normal unsatisfied
Zac Medico [Tue, 28 Jul 2009 23:27:52 +0000 (23:27 -0000)]
When backtracking due to an unsatisfied dependency, show a normal unsatisfied
dependency message for the given atom. Thanks to Thomas Sachau
<tommy@gentoo.org> for reporting.

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

16 years agoFix --onlydeps breakage. Thanks to Arfrever for reporting.
Zac Medico [Sat, 25 Jul 2009 09:33:18 +0000 (09:33 -0000)]
Fix --onlydeps breakage. Thanks to Arfrever for reporting.

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

16 years agoBug #270040 - Make repoman parse the categories file from the overlay.
Zac Medico [Wed, 22 Jul 2009 18:26:52 +0000 (18:26 -0000)]
Bug #270040 - Make repoman parse the categories file from the overlay.

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

16 years agoAdd comment in calc_depclean() about topological sort optimization that
Zac Medico [Tue, 21 Jul 2009 20:33:11 +0000 (20:33 -0000)]
Add comment in calc_depclean() about topological sort optimization that
minimizes issues with implicit deps.

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

16 years agoAlways pass encodings='utf_8' to codecs.open(), since otherwise it can
Zac Medico [Mon, 20 Jul 2009 23:50:20 +0000 (23:50 -0000)]
Always pass encodings='utf_8' to codecs.open(), since otherwise it can
return non-unicode strings (at least in some cases, observed with
python-2.6.2). Don't use unicode in portage.util.getconfig() for now,
since shlex doesn't seem to support it (spurious \0 characters). If we
use unicode for config variables, it breaks shlex.split() calls on those
variables due to the same issue (spurious \0 characters).

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

16 years agoFEATURES=unmerge-logs
Zac Medico [Mon, 20 Jul 2009 22:43:41 +0000 (22:43 -0000)]
FEATURES=unmerge-logs
Keep logs from successful unmerge phases. This is relevant only when
PORT_LOGDIR is set.

Thanks to Diego Pettenò <flameeyes@gentoo.org> for the suggestion.

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

16 years agoRemove empty log files inside dblink.unmerge(). Thanks to Diego Pettenò
Zac Medico [Mon, 20 Jul 2009 22:13:32 +0000 (22:13 -0000)]
Remove empty log files inside dblink.unmerge(). Thanks to Diego Pettenò
<flameeyes@gentoo.org> for reporting.

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

16 years agoSkip Blocker instances inside _add_prefetchers().
Zac Medico [Mon, 20 Jul 2009 22:11:40 +0000 (22:11 -0000)]
Skip Blocker instances inside _add_prefetchers().

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

16 years agoMove mtimedb resume list code from action_build() to
Zac Medico [Mon, 20 Jul 2009 21:21:22 +0000 (21:21 -0000)]
Move mtimedb resume list code from action_build() to
Scheduler._save_resume_list().

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

16 years agoUse a lazy reference to sys.stdout, in case the API consumer has
Zac Medico [Mon, 20 Jul 2009 20:43:48 +0000 (20:43 -0000)]
Use a lazy reference to sys.stdout, in case the API consumer has
temporarily overridden stdout.

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

16 years agoMake portage.listdir() and dbapi.cp_list() return unicode.
Zac Medico [Mon, 20 Jul 2009 20:24:24 +0000 (20:24 -0000)]
Make portage.listdir() and dbapi.cp_list() return unicode.

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

16 years agoFix Scheduler bug:
Mounir Lamouri [Mon, 20 Jul 2009 20:23:16 +0000 (20:23 -0000)]
Fix Scheduler bug:
the scheduler was adding prefetcher even for uninstall tasks

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

16 years agoIn grablines(), specify encoding=sys.getdefaultencoding() in the codecs.open()
Zac Medico [Mon, 20 Jul 2009 18:57:18 +0000 (18:57 -0000)]
In grablines(), specify encoding=sys.getdefaultencoding() in the codecs.open()
parameters, since otherwise readlines doesn't return unicode (at least in
some cases, observed with python-2.6.2). Also, fix grabfile() to return
unicode when it normalizes whitespace.

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

16 years agoUse codecs.open for unicode support in FileLoader.load().
Zac Medico [Mon, 20 Jul 2009 17:50:07 +0000 (17:50 -0000)]
Use codecs.open for unicode support in FileLoader.load().

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

16 years agoIn _check_manifests(), skip uninstall operations.
Zac Medico [Sun, 19 Jul 2009 22:12:14 +0000 (22:12 -0000)]
In _check_manifests(), skip uninstall operations.

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

16 years agoUse readlines() to optimize performance. Thanks to Marat Radchenko
Zac Medico [Sun, 19 Jul 2009 22:02:00 +0000 (22:02 -0000)]
Use readlines() to optimize performance. Thanks to Marat Radchenko
<slonopotamusorama@gmail.com> for this patch from bug #276813.

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

16 years agoFor consistency with emake, add ${MAKEOPTS} ${EXTRA_EMAKE} to make arguments
Zac Medico [Fri, 17 Jul 2009 18:39:58 +0000 (18:39 -0000)]
For consistency with emake, add ${MAKEOPTS} ${EXTRA_EMAKE} to make arguments
inside einstall. Also, force -j1 in order to override any --jobs settings
from MAKEOPTS. Thanks to Diego Pettenò <flameeyes@gentoo.org> for the
suggestion.

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

16 years agoFor unsatisfied USE dependencies, do not backtrack if only USE have to change
Zac Medico [Thu, 16 Jul 2009 22:18:45 +0000 (22:18 -0000)]
For unsatisfied USE dependencies, do not backtrack if only USE have to change
in order to be satisfied. Thanks to Thomas Sachau <tommy@gentoo.org> fo
reporting.

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

16 years agoalign with Prefix, also warn on sparcv9 hosts -- 64-bits Solaris/Sparc
Fabian Groffen [Thu, 16 Jul 2009 20:01:54 +0000 (20:01 -0000)]
align with Prefix, also warn on sparcv9 hosts -- 64-bits Solaris/Sparc

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

16 years agoadd hppa64 to the 64bit list as pointed out by Michael Haubenwallner
Mike Frysinger [Thu, 16 Jul 2009 17:44:19 +0000 (17:44 -0000)]
add hppa64 to the 64bit list as pointed out by Michael Haubenwallner

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

16 years agofix up spacing, remove commented out code, fix copyright (sort of see-if-I-can-commit...
Fabian Groffen [Mon, 13 Jul 2009 18:09:38 +0000 (18:09 -0000)]
fix up spacing, remove commented out code, fix copyright (sort of see-if-I-can-commit test)

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

16 years agoOptimize USE_EXPAND -> USE code inside config.setcpv(). Thanks to
Zac Medico [Sun, 12 Jul 2009 23:04:43 +0000 (23:04 -0000)]
Optimize USE_EXPAND -> USE code inside config.setcpv(). Thanks to
Marat Radchenko <slonopotamusorama@gmail.com> for the initial patch
from bug #276813.

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

16 years agoAllow search and depgraph to avoid spinner by using spinner=None
Mounir Lamouri [Sun, 12 Jul 2009 22:26:10 +0000 (22:26 -0000)]
Allow search and depgraph to avoid spinner by using spinner=None

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

16 years agoRemove leading slash from appropriate paths inside portage.const, so that
Zac Medico [Sun, 12 Jul 2009 20:45:53 +0000 (20:45 -0000)]
Remove leading slash from appropriate paths inside portage.const, so that
lstrip(os.sep) is not needed for os.path.join() calls. Thanks to Fabian
Groffen <grobian@g.o> for this patch.

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

16 years agoImprove description of QA_DT_HASH.
Arfrever Frehtes Taifersar Arahesis [Sun, 12 Jul 2009 15:57:23 +0000 (15:57 -0000)]
Improve description of QA_DT_HASH.

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

16 years agoIn depgraph._show_missed_update(), don't show installed packages since we
Zac Medico [Sun, 12 Jul 2009 08:03:41 +0000 (08:03 -0000)]
In depgraph._show_missed_update(), don't show installed packages since we
only want to show available updates.

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

16 years agoMove the backtracking code from action_build() to a new backtrack_depgraph()
Zac Medico [Sun, 12 Jul 2009 05:26:39 +0000 (05:26 -0000)]
Move the backtracking code from action_build() to a new backtrack_depgraph()
function.

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

16 years agoEliminate duplicate code inside depgraph._show_missed_update().
Zac Medico [Sat, 11 Jul 2009 22:19:37 +0000 (22:19 -0000)]
Eliminate duplicate code inside depgraph._show_missed_update().

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

16 years agoBug #137562 - Implement backtracking for missing dependencies. Thanks to
Zac Medico [Sat, 11 Jul 2009 21:17:24 +0000 (21:17 -0000)]
Bug #137562 - Implement backtracking for missing dependencies. Thanks to
Sebastian Mingramm (few) <s.mingramm@gmx.de> for the initial patch which
only needed minor changes.

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

16 years agoOptimize USE_EXPAND -> USE code inside config.setcpv(). Thanks to
Zac Medico [Sat, 11 Jul 2009 20:23:54 +0000 (20:23 -0000)]
Optimize USE_EXPAND -> USE code inside config.setcpv(). Thanks to
Marat Radchenko <slonopotamusorama@gmail.com> for this patch from
bug #276813.

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

16 years agoAssign 'cfgprot' before referencing it. Reported by Thomas Sachau.
Arfrever Frehtes Taifersar Arahesis [Sat, 11 Jul 2009 17:05:54 +0000 (17:05 -0000)]
Assign 'cfgprot' before referencing it. Reported by Thomas Sachau.

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

16 years agoAllow --deep to take an optional integer parameter, to specify how deep it
Zac Medico [Thu, 9 Jul 2009 07:35:22 +0000 (07:35 -0000)]
Allow --deep to take an optional integer parameter, to specify how deep it
should go. Also make --update so it no longer implies the equivalent of
--deep=1. To get the old --update behavior, use --update --deep=1.

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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

16 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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