portage.git
16 years agoBug #241906 - Handle InvalidAtom exception raised from vardbapi.match().
Zac Medico [Sat, 1 Nov 2008 03:14:47 +0000 (03:14 -0000)]
Bug #241906 - Handle InvalidAtom exception raised from vardbapi.match().

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

16 years agoBug #244792 - Remove confcache support.
Zac Medico [Sat, 1 Nov 2008 02:52:44 +0000 (02:52 -0000)]
Bug #244792 - Remove confcache support.

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

16 years agoBug #244947 - Add repoman support for checking masked and forced flags on
Zac Medico [Sat, 1 Nov 2008 02:43:56 +0000 (02:43 -0000)]
Bug #244947 - Add repoman support for checking masked and forced flags on
conditional USE deps.

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

16 years agoBug #244947 - Add basic repoman support for checking masked and forced flags
Zac Medico [Fri, 31 Oct 2008 21:37:18 +0000 (21:37 -0000)]
Bug #244947 - Add basic repoman support for checking masked and forced flags
when verifying USE deps. TODO: Add repoman support in dep_check() for
evaluation of conditional USE deps based on forced/masked flags.
masked flags, so that repoman can also

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

16 years agoEliminate duplicate code by calling equivalent dblink._clear_contents_cache().
Zac Medico [Fri, 31 Oct 2008 20:40:51 +0000 (20:40 -0000)]
Eliminate duplicate code by calling equivalent dblink._clear_contents_cache().

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

16 years agoBug #243178 - Handle file collisions with preserved libs by allowing the
Zac Medico [Fri, 31 Oct 2008 20:21:53 +0000 (20:21 -0000)]
Bug #243178 - Handle file collisions with preserved libs by allowing the
current package to assume ownership and unregistering the preserved libraries.

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

16 years agoIn dblink._collision_protect(), remove redundant self.isowner() calls since
Zac Medico [Fri, 31 Oct 2008 18:49:10 +0000 (18:49 -0000)]
In dblink._collision_protect(), remove redundant self.isowner() calls since
self hasn't yet been merged and therefore has no CONTENTS file for ownership
checks. Also, remove redundant isprotected() calls.

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

16 years agoBug #236609 - Fix columns calculation for TERM="dumb". Thanks to Ulrich Müller
Zac Medico [Fri, 31 Oct 2008 17:25:44 +0000 (17:25 -0000)]
Bug #236609 - Fix columns calculation for TERM="dumb". Thanks to Ulrich Müller
<ulm@g.o> for the patch.

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

16 years agoRevert previous commit since it doesn't properly calculate masked and forced
Zac Medico [Fri, 31 Oct 2008 05:07:28 +0000 (05:07 -0000)]
Revert previous commit since it doesn't properly calculate masked and forced
flags for the package being matched (it erroneously uses the masked and forced
flags from the parent package).

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

16 years agoBug #244947 - Add repoman support for checking masked and forced flags when
Zac Medico [Fri, 31 Oct 2008 04:29:51 +0000 (04:29 -0000)]
Bug #244947 - Add repoman support for checking masked and forced flags when
verifying USE deps. Thanks to Brian Harring for reporting.

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

16 years agoRemove unused conditional_disabled and conditional_enabled attributes from
Zac Medico [Fri, 31 Oct 2008 04:26:06 +0000 (04:26 -0000)]
Remove unused conditional_disabled and conditional_enabled attributes from
_use_dep.__slots__.

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

16 years agoFix broken stuff to avoid tracebacks when running in commit mode with
Zac Medico [Fri, 31 Oct 2008 04:01:49 +0000 (04:01 -0000)]
Fix broken stuff to avoid tracebacks when running in commit mode with
--pretend and no vcs.

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

16 years agoPass a Package instance into the config.setcpv() call.
Zac Medico [Fri, 31 Oct 2008 03:46:22 +0000 (03:46 -0000)]
Pass a Package instance into the config.setcpv() call.

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

16 years agoUse portage.const.PORTAGE_PACKAGE_ATOM where appropriate.
Zac Medico [Thu, 30 Oct 2008 22:44:55 +0000 (22:44 -0000)]
Use portage.const.PORTAGE_PACKAGE_ATOM where appropriate.

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

16 years agorecheck what changed in the repository also when nothing was added, because
Zac Medico [Thu, 30 Oct 2008 22:25:27 +0000 (22:25 -0000)]
recheck what changed in the repository also when nothing was added, because
manifest regeneration might change the Manifest, this fixes bug #229033
(branches/prefix r11755)

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

16 years agoBug #244975 - Don't allow the user to make portage unmerge itself since
Zac Medico [Thu, 30 Oct 2008 22:18:55 +0000 (22:18 -0000)]
Bug #244975 - Don't allow the user to make portage unmerge itself since
there's never any valid reason to do so.

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

16 years agoMake sure mychanged and mynew are always defined even if there is no vcs
Zac Medico [Thu, 30 Oct 2008 20:33:57 +0000 (20:33 -0000)]
Make sure mychanged and mynew are always defined even if there is no vcs
because commit mode is allowed without a vcs in pretend mode.

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

16 years agoAvoid unnecessary aux_get calls inside Scheduler._pkg() by getting the existing
Zac Medico [Thu, 30 Oct 2008 20:20:38 +0000 (20:20 -0000)]
Avoid unnecessary aux_get calls inside Scheduler._pkg() by getting the existing
Package instance from the digraph.

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

16 years agodefine myunadded such that repoman doesn't crash when being run in a
Zac Medico [Thu, 30 Oct 2008 19:54:19 +0000 (19:54 -0000)]
define myunadded such that repoman doesn't crash when being run in a
non-{cvs,svn} dir (branches/prefix r11750)

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

16 years agoBug #225429 - Inside LinkageMap.rebuild(), update self._defpath since it
Zac Medico [Thu, 30 Oct 2008 07:58:25 +0000 (07:58 -0000)]
Bug #225429 - Inside LinkageMap.rebuild(), update self._defpath since it
can change during a gcc upgrade.

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

16 years agoBug # 225429 - Try to remove unneeded preserved libs just before returning
Zac Medico [Thu, 30 Oct 2008 07:46:32 +0000 (07:46 -0000)]
Bug # 225429 - Try to remove unneeded preserved libs just before returning
from dblink.treewalk(), after the library path has been updated. This is
intended to remove unneeded preserved libs after a gcc upgrade. TODO: Figure
out why libgomp.so.1 still isn't properly removed.

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

16 years agoIn dblink.unmerge(), update the CONTENTS entries when preserved libs are
Zac Medico [Thu, 30 Oct 2008 03:37:55 +0000 (03:37 -0000)]
In dblink.unmerge(), update the CONTENTS entries when preserved libs are
removed.

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

16 years agoBug #225429 - In dblink.unmerge(), eliminate consumers having providers with
Zac Medico [Thu, 30 Oct 2008 03:04:08 +0000 (03:04 -0000)]
Bug #225429 - In dblink.unmerge(), eliminate consumers having providers with
the same soname as an installed library that is not preserved. This eliminates
libraries that are erroneously preserved due to a move from one directory to
another.

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

16 years agoMake config.setcpv() store the ebuild metadata inside self.configdict["pkg"],
Zac Medico [Wed, 29 Oct 2008 17:03:35 +0000 (17:03 -0000)]
Make config.setcpv() store the ebuild metadata inside self.configdict["pkg"],
and reuse this metadata inside doebuild() in order to avoid redundant
portdbapi.aux_get() calls.

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

16 years agoFix interaction between LinkageMap.rebuild() and the package replacement
Zac Medico [Wed, 29 Oct 2008 00:07:34 +0000 (00:07 -0000)]
Fix interaction between LinkageMap.rebuild() and the package replacement
process in order to avoid problems with stale or unaccounted NEEDED. This
solves a LinkageMap corruption issue which caused findConsumers to return
false positive inside dblink.unmerge().

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

16 years agoFix $ROOT handling inside LinkageMap.findConsumers().
Zac Medico [Tue, 28 Oct 2008 23:15:24 +0000 (23:15 -0000)]
Fix $ROOT handling inside LinkageMap.findConsumers().

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

16 years agoBug #238957 - When removing unneeded preserved libs inside dblink.unmerge(),
Zac Medico [Tue, 28 Oct 2008 23:04:14 +0000 (23:04 -0000)]
Bug #238957 - When removing unneeded preserved libs inside dblink.unmerge(),
use a digraph to properly track consumer relationships between preserved libs.
This fixes cases where preserved libs failed to be removed due to being
consumed by other preserved libs.

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

16 years agoUpdate the auto-add message to say "Manifest" instead of "digests". Thanks to
Zac Medico [Tue, 28 Oct 2008 21:22:22 +0000 (21:22 -0000)]
Update the auto-add message to say "Manifest" instead of "digests". Thanks to
grobian.

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

16 years agoRemove manifest1 digest-* autoadd code. Thanks to grobian.
Zac Medico [Tue, 28 Oct 2008 21:10:24 +0000 (21:10 -0000)]
Remove manifest1 digest-* autoadd code. Thanks to grobian.

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

16 years agoFix graph.get() so that it works as intended, returning the node corresponding
Zac Medico [Tue, 28 Oct 2008 20:53:46 +0000 (20:53 -0000)]
Fix graph.get() so that it works as intended, returning the node corresponding
to the given key.

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

16 years agoFix some incorrect $ROOT handling inside LinkageMap.
Zac Medico [Tue, 28 Oct 2008 09:25:56 +0000 (09:25 -0000)]
Fix some incorrect $ROOT handling inside LinkageMap.

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

16 years agoMake SetConfig.getSetAtoms() raise a PackageSetNotFound exception when
Zac Medico [Tue, 28 Oct 2008 09:07:39 +0000 (09:07 -0000)]
Make SetConfig.getSetAtoms() raise a PackageSetNotFound exception when
necessary and add handling code in emerge. This solves an unhandled
KeyError that was raise when a nested set did not exist. Thanks to
ABCD for reporting.

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

16 years agoFix incorrect $ROOT handling inside dblink._preserve_libs().
Zac Medico [Tue, 28 Oct 2008 05:30:33 +0000 (05:30 -0000)]
Fix incorrect $ROOT handling inside dblink._preserve_libs().

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

16 years agoPass $ROOT into the LinkageMap._ObjectKey constructor since it's needed for
Zac Medico [Tue, 28 Oct 2008 04:04:56 +0000 (04:04 -0000)]
Pass $ROOT into the LinkageMap._ObjectKey constructor since it's needed for
os.stat() and realpath() calls.

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

16 years agoPass $ROOT into portage.util.getlibpaths().
Zac Medico [Tue, 28 Oct 2008 03:41:32 +0000 (03:41 -0000)]
Pass $ROOT into portage.util.getlibpaths().

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

16 years agoReturn early from fetch() if no uris are given.
Zac Medico [Mon, 27 Oct 2008 22:35:43 +0000 (22:35 -0000)]
Return early from fetch() if no uris are given.

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

16 years agoIn fetch(), avoid the "Adjusting permissions recursively" message in cases
Zac Medico [Mon, 27 Oct 2008 22:19:45 +0000 (22:19 -0000)]
In fetch(), avoid the "Adjusting permissions recursively" message in cases
when the directory has just been created and therefore it must be empty.

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

16 years agoEnable bashrc even when $EBUILD_PHASE is unset, so it's possible to override
Zac Medico [Sun, 26 Oct 2008 07:55:41 +0000 (07:55 -0000)]
Enable bashrc even when $EBUILD_PHASE is unset, so it's possible to override
things like INSTALL_MASK.

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

16 years agoWhen creating the temporary $DISTDIR, do not try to set the uid since it
Zac Medico [Sat, 25 Oct 2008 18:20:16 +0000 (18:20 -0000)]
When creating the temporary $DISTDIR, do not try to set the uid since it
will fail when not running as root.

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

16 years agoFix preserve-libs code inside dblink.unmerge() so that it will join paths
Zac Medico [Fri, 24 Oct 2008 20:28:57 +0000 (20:28 -0000)]
Fix preserve-libs code inside dblink.unmerge() so that it will join paths
correctly when ROOT != /.

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

16 years agoWhen populating the fake $DISTDIR inside doebuild(), reuse existing symlinks
Zac Medico [Fri, 24 Oct 2008 00:07:21 +0000 (00:07 -0000)]
When populating the fake $DISTDIR inside doebuild(), reuse existing symlinks
when possible, instead of recreating the whole directory from scratch.

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

16 years agoAdd "subversion" to InheritAutotools._exempt_eclasses. Thanks to Arfrever.
Zac Medico [Thu, 23 Oct 2008 17:19:09 +0000 (17:19 -0000)]
Add "subversion" to InheritAutotools._exempt_eclasses. Thanks to Arfrever.

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

16 years agoAdd "bzr" to the lists of live eclasses.
Zac Medico [Thu, 23 Oct 2008 06:00:02 +0000 (06:00 -0000)]
Add "bzr" to the lists of live eclasses.

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

16 years agoAdd "bzr" to the lists of live eclasses.
Zac Medico [Thu, 23 Oct 2008 05:57:24 +0000 (05:57 -0000)]
Add "bzr" to the lists of live eclasses.

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

16 years agoBug #243224 - Add an exemption to the inherit.autotools check for ebuilds that
Zac Medico [Wed, 22 Oct 2008 17:59:25 +0000 (17:59 -0000)]
Bug #243224 - Add an exemption to the inherit.autotools check for ebuilds that
inherit git.eclass since the GIT_BOOTSTRAP variable may be used to call one of
autotools functions.

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

16 years agoFix grammar.
Zac Medico [Wed, 22 Oct 2008 16:15:07 +0000 (16:15 -0000)]
Fix grammar.

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

16 years agoAdd a PROPERTIES.syntax check.
Zac Medico [Wed, 22 Oct 2008 05:36:34 +0000 (05:36 -0000)]
Add a PROPERTIES.syntax check.

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

16 years agoDocument PROPERTIES=interactive.
Zac Medico [Wed, 22 Oct 2008 05:20:12 +0000 (05:20 -0000)]
Document PROPERTIES=interactive.

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

16 years agoBug #233296 - Add minimal PROPERTIES=interactive support by simply forcing
Zac Medico [Tue, 21 Oct 2008 23:24:31 +0000 (23:24 -0000)]
Bug #233296 - Add minimal PROPERTIES=interactive support by simply forcing
all package output to stdio whenever the merge list contains one or more
interactive packages.

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

16 years agoSplit dep validation out of doebuild() and skip it when called by emerge since
Zac Medico [Tue, 21 Oct 2008 22:05:51 +0000 (22:05 -0000)]
Split dep validation out of doebuild() and skip it when called by emerge since
there's no need to do this every time emerge executes a phase.

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

16 years agoValidate PROPERTIES inside doebuild().
Zac Medico [Tue, 21 Oct 2008 21:45:57 +0000 (21:45 -0000)]
Validate PROPERTIES inside doebuild().

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

16 years agoRemove unused imports found by pyflakes.
Zac Medico [Tue, 21 Oct 2008 21:09:29 +0000 (21:09 -0000)]
Remove unused imports found by pyflakes.

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

16 years agoRemove needlessly complex error handling code from vardbapi.cpv_counter().
Zac Medico [Tue, 21 Oct 2008 21:05:18 +0000 (21:05 -0000)]
Remove needlessly complex error handling code from vardbapi.cpv_counter().

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

16 years agoUse normal return statements instead of calling sys.exit() inside
Zac Medico [Tue, 21 Oct 2008 20:55:35 +0000 (20:55 -0000)]
Use normal return statements instead of calling sys.exit() inside
dblink.mergeme().

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

16 years agoBug #186842 - Suppress file merge display, as previously done in --quiet mode, whenever
Zac Medico [Tue, 21 Oct 2008 08:39:00 +0000 (08:39 -0000)]
Bug #186842 - Suppress file merge display, as previously done in --quiet mode, whenever
--verbose is not enabled. Also, export PORTAGE_VERBOSE to the ebuild environment and use
it to control tar verbosity when creating binary packages.

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

16 years agoAdd PORTAGE_QUIET to the environment whitelist and filter it from the saved ebuild
Zac Medico [Tue, 21 Oct 2008 08:01:22 +0000 (08:01 -0000)]
Add PORTAGE_QUIET to the environment whitelist and filter it from the saved ebuild
environment.

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

16 years agoRemove redundant duplicate uri elimination code. It's already handled in
Zac Medico [Mon, 20 Oct 2008 19:15:20 +0000 (19:15 -0000)]
Remove redundant duplicate uri elimination code. It's already handled in
the fetch loop.

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

16 years agoPrefer thirdpartymirrors over normal mirrors in cases when the file does not
Zac Medico [Mon, 20 Oct 2008 19:11:15 +0000 (19:11 -0000)]
Prefer thirdpartymirrors over normal mirrors in cases when the file does not
yet exist on the normal mirrors. Thanks to Maurice van der Pot <griffon26@g.o>
for reporting.

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

16 years agoHandle the case that was intended to be fixed by r11702 (which got reverted).
Zac Medico [Mon, 20 Oct 2008 18:21:42 +0000 (18:21 -0000)]
Handle the case that was intended to be fixed by r11702 (which got reverted).

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

16 years agoRevert previous 2 commits since they broke "selective" behavior.
Zac Medico [Mon, 20 Oct 2008 00:44:52 +0000 (00:44 -0000)]
Revert previous 2 commits since they broke "selective" behavior.

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

16 years agoSimplify logic from the previous commit.
Zac Medico [Mon, 20 Oct 2008 00:30:10 +0000 (00:30 -0000)]
Simplify logic from the previous commit.

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

16 years agoRemove the "found_available_arg" variable from depgraph._select_pkg() and use
Zac Medico [Sun, 19 Oct 2008 17:33:14 +0000 (17:33 -0000)]
Remove the "found_available_arg" variable from depgraph._select_pkg() and use
the "matched_packages" variable instead. This solve a problem where the
"found_available_arg" flag is unreliable due to the slot filtering behavior
of depgraph._iter_atoms_for_pkg(). For example, a higher version in a
different slot than the available ebuild might be masked or unavailable, and
depgraph._iter_atoms_for_pkg() will not identify the available ebuild as
a match due to this installed package (which is not available for reinstall).

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

16 years agoRemove the unused portage.gpg module and portage_gpg_update.sh script.
Zac Medico [Fri, 17 Oct 2008 19:56:43 +0000 (19:56 -0000)]
Remove the unused portage.gpg module and portage_gpg_update.sh script.

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

16 years agoRemove support for FEATURES=gpg since it's already disabled and broken
Zac Medico [Fri, 17 Oct 2008 18:52:27 +0000 (18:52 -0000)]
Remove support for FEATURES=gpg since it's already disabled and broken
anyway. Thanks to DJ Anderson for the suggestion.

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

16 years agoIn fetch(), make sure all references to digests for zero-byte distfile are
Zac Medico [Fri, 17 Oct 2008 02:02:32 +0000 (02:02 -0000)]
In fetch(), make sure all references to digests for zero-byte distfile are
always discarded.

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

16 years agoIn fetch(), don't spawn pkg_nofetch unless PORTAGE_BUILDDIR exists since it
Zac Medico [Thu, 16 Oct 2008 23:04:31 +0000 (23:04 -0000)]
In fetch(), don't spawn pkg_nofetch unless PORTAGE_BUILDDIR exists since it
will die anyway due to the code for bug #239560 that's in ebuild.sh.

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

16 years agoBug #242304 - When a zero-byte distfile is detected inside fetch(), discard
Zac Medico [Thu, 16 Oct 2008 22:55:46 +0000 (22:55 -0000)]
Bug #242304 - When a zero-byte distfile is detected inside fetch(), discard
the digests and attempt to fetch the file if possible. This code is triggered
via digestgen() when appropriate, so it fixes all digestgen() callers,
including repoman.

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

16 years agoBug #229033 - When a Manifest is added automatically by repoman, it's in the
Zac Medico [Tue, 14 Oct 2008 22:14:05 +0000 (22:14 -0000)]
Bug #229033 - When a Manifest is added automatically by repoman, it's in the
"mynew" list, so move manifest paths from that list to the "mymanifests" list
when necessary.

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

16 years agoBug #241366 - Only suggest to run `emaint --check world` when the atom is
Zac Medico [Tue, 14 Oct 2008 21:37:53 +0000 (21:37 -0000)]
Bug #241366 - Only suggest to run `emaint --check world` when the atom is
a direct member of the world set (rather than from a nested set).

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

16 years agoWhen emerge --keep-going bails due to missing dependencies, show the error
Zac Medico [Tue, 14 Oct 2008 21:05:54 +0000 (21:05 -0000)]
When emerge --keep-going bails due to missing dependencies, show the error
message after the mod_echo output since otherwise the mod_echo output can
sweep the error message out of view. Thanks to Donnie Berkholz <dberkholz@g.o>
for reporting.

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

16 years agoMake sure the pkg_nofetch phase is only called once when in fetchonly mode.
Zac Medico [Mon, 13 Oct 2008 20:52:07 +0000 (20:52 -0000)]
Make sure the pkg_nofetch phase is only called once when in fetchonly mode.

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

16 years agoMake fetch() fetch as many files as possible, even if some fail, when in
Zac Medico [Mon, 13 Oct 2008 00:39:21 +0000 (00:39 -0000)]
Make fetch() fetch as many files as possible, even if some fail, when in
fetchonly mode.

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

16 years agoDon't return from fetch() due to fetch restriction when in "listonly" mode.
Zac Medico [Mon, 13 Oct 2008 00:21:01 +0000 (00:21 -0000)]
Don't return from fetch() due to fetch restriction when in "listonly" mode.

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

16 years agoBug #234301 - When fetch fails, include the path of the log file in the
Zac Medico [Sun, 12 Oct 2008 23:57:29 +0000 (23:57 -0000)]
Bug #234301 - When fetch fails, include the path of the log file in the
eerror message that's generated. This way it's easy for the user to find
the output from the fetcher or from the pkg_nofetch phase.

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

16 years agoBug #241118 - Re-enable pkg_nofetch for emerge --pretend --fetch, but direct
Zac Medico [Sun, 12 Oct 2008 23:17:56 +0000 (23:17 -0000)]
Bug #241118 - Re-enable pkg_nofetch for emerge --pretend --fetch, but direct
output to stderr. This requires PORTAGE_BUILDDIR locking for bug #239560 and
also for elog message storage.

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

16 years agoAdd an explicit note about bug #239560 in the relevant code.
Zac Medico [Sun, 12 Oct 2008 21:01:12 +0000 (21:01 -0000)]
Add an explicit note about bug #239560 in the relevant code.

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

16 years agoInside fetch(), don't call pkg_nofetch when in parallel-fetch mode since
Zac Medico [Sun, 12 Oct 2008 20:57:00 +0000 (20:57 -0000)]
Inside fetch(), don't call pkg_nofetch when in parallel-fetch mode since
it will get call again later anyway.

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

16 years agoNow that only prefetch (parallel-fetch) output goes to the global fetch
Zac Medico [Sun, 12 Oct 2008 19:59:32 +0000 (19:59 -0000)]
Now that only prefetch (parallel-fetch) output goes to the global fetch
log, update code to remove inappropriate references to this log.

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

16 years agoRemove the prefetch logic in EbuildFetcher._pipe() since prefetchers are
Zac Medico [Sun, 12 Oct 2008 02:15:00 +0000 (02:15 -0000)]
Remove the prefetch logic in EbuildFetcher._pipe() since prefetchers are
always in the background anyway.

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

16 years agoBuge #241100 - Make EbuildFetcher use a pty when appropriate, so that fetcher
Zac Medico [Sun, 12 Oct 2008 00:46:59 +0000 (00:46 -0000)]
Buge #241100 - Make EbuildFetcher use a pty when appropriate, so that fetcher
progress bars, like wget has, will work properly.

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

16 years agoMake the Scheduler class treat failed fetches the same as other failed
Zac Medico [Sun, 12 Oct 2008 00:09:40 +0000 (00:09 -0000)]
Make the Scheduler class treat failed fetches the same as other failed
packages, and don't bail out due to a failure when in --fetchonly mode.
This fixes an issue with --fetchonly bailing out instead of continuing
to fetch.

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

16 years agoIn EbuildFetcher._start(), in order to ensure that a new log is created when
Zac Medico [Sat, 11 Oct 2008 20:31:48 +0000 (20:31 -0000)]
In EbuildFetcher._start(), in order to ensure that a new log is created when
appropriate, clean up PORTAGE_BUILDDIR if appropriate.

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

16 years agoWhen warning about package categories that haven't been configured via
Zac Medico [Sat, 11 Oct 2008 19:34:10 +0000 (19:34 -0000)]
When warning about package categories that haven't been configured via
/etc/portage/categories, join the path with PORTAGE_CONFIGROOT. Thanks
to Ned Ludd <solar@g.o> for reporting.

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

16 years agoBug #241204 - Fix dbapi.invalidentry() calls inside vardbapi.cpv_all() to
Zac Medico [Sat, 11 Oct 2008 18:51:07 +0000 (18:51 -0000)]
Bug #241204 - Fix dbapi.invalidentry() calls inside vardbapi.cpv_all() to
correctly join the path via self.getpath().

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

16 years agoonly use dummy echos in do_file() when running in interactive mode
Mike Frysinger [Fri, 10 Oct 2008 22:02:15 +0000 (22:02 -0000)]
only use dummy echos in do_file() when running in interactive mode

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

16 years agoMigrate code from plain ValueError to AmbiguousPackageName where appropriate
Zac Medico [Fri, 10 Oct 2008 20:33:08 +0000 (20:33 -0000)]
Migrate code from plain ValueError to AmbiguousPackageName where appropriate
(inherits from ValueError for backward compatibility).

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

16 years agoBug #241132 - Handle AmbiguousPackageName exceptions for atoms passed to the
Zac Medico [Fri, 10 Oct 2008 20:25:19 +0000 (20:25 -0000)]
Bug #241132 - Handle AmbiguousPackageName exceptions for atoms passed to the
--info action.

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

16 years agoCreate a new AmbiguousPackageName exception to raise from
Zac Medico [Fri, 10 Oct 2008 20:15:43 +0000 (20:15 -0000)]
Create a new AmbiguousPackageName exception to raise from
portage.cpv_expand(). It inherits from ValueError, for
backward compatibility with calling code that already
handles ValueError.

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

16 years agoGrab make.globals from GLOBAL_CONFIG_PATH if available and fall back to the
Zac Medico [Thu, 9 Oct 2008 23:29:54 +0000 (23:29 -0000)]
Grab make.globals from GLOBAL_CONFIG_PATH if available and fall back to the
legacy location if necessary.

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

16 years agoAt the end of dyn_clean(), also remove the $CATEGORY directory if possible. v2.2_rc12
Zac Medico [Thu, 9 Oct 2008 20:31:04 +0000 (20:31 -0000)]
At the end of dyn_clean(), also remove the $CATEGORY directory if possible.

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

16 years agoRemove redundant os.close(master_fd) call inside SpawnProcess._start() since
Zac Medico [Thu, 9 Oct 2008 20:03:37 +0000 (20:03 -0000)]
Remove redundant os.close(master_fd) call inside SpawnProcess._start() since
that file discriptor is referenced by a file object which already has an
appropriate close() call. This fixes an 'IOError: [Errno 9] Bad file
descriptor' exception which was raised when attempting to close the file
object.

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

16 years agoFix code from previous commit so it properly checks $eapi to verify that
Zac Medico [Thu, 9 Oct 2008 19:46:07 +0000 (19:46 -0000)]
Fix code from previous commit so it properly checks $eapi to verify that
src_prepare is really a supported phase function.

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

16 years agoBug #240684 - Fix _ebuild_arg_to_phase() to handle the src_prepare phase
Zac Medico [Thu, 9 Oct 2008 19:32:20 +0000 (19:32 -0000)]
Bug #240684 - Fix _ebuild_arg_to_phase() to handle the src_prepare phase
so that the default() function is properly created.

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

16 years agoIn EbuildFetcher._set_returncode(), don't clean up PORTAGE_BUILDDIR if
Zac Medico [Thu, 9 Oct 2008 01:10:49 +0000 (01:10 -0000)]
In EbuildFetcher._set_returncode(), don't clean up PORTAGE_BUILDDIR if
keepwork or keeptemp are in FEATURES.

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

16 years agoDon't show the repo display when the merge list is empty.
Zac Medico [Wed, 8 Oct 2008 22:47:15 +0000 (22:47 -0000)]
Don't show the repo display when the merge list is empty.

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

16 years agoFix apparent breakage from r11593 (slot dep support):
Zac Medico [Wed, 8 Oct 2008 22:35:31 +0000 (22:35 -0000)]
Fix apparent breakage from r11593 (slot dep support):
* Handle KeyError from element.getAttribute() in makeAtom() and makeVersion().
* Avoid 'sre_constants.error: unmatched group' exceptions in revisionMatch()
  when the atom does not have a slot.

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

16 years agoIn EbuildBuild._fetch_exit(), clean up the fetch log if fetch was successful.
Zac Medico [Wed, 8 Oct 2008 18:25:39 +0000 (18:25 -0000)]
In EbuildBuild._fetch_exit(), clean up the fetch log if fetch was successful.

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

16 years agoUse separate temp directories in order to avoid potential name collisions.
Zac Medico [Wed, 8 Oct 2008 18:03:07 +0000 (18:03 -0000)]
Use separate temp directories in order to avoid potential name collisions.

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

16 years agoSince EbuildBuild no longer directs it's EbuildFetcher instance's output
Zac Medico [Wed, 8 Oct 2008 16:16:35 +0000 (16:16 -0000)]
Since EbuildBuild no longer directs it's EbuildFetcher instance's output
to the global fetch log, there's no need to schedule it on the fetch
queue.

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

16 years agoBefore returning config instances from Scheduler._allocate_config(), call the
Zac Medico [Wed, 8 Oct 2008 03:27:43 +0000 (03:27 -0000)]
Before returning config instances from Scheduler._allocate_config(), call the
config.reset() method to make sure all settings from the previous package get
flushed out (such as PORTAGE_LOG_FILE). This fixes a case where
PORTAGE_LOG_FILE leaked from the previous package to the clean phase of the
next one, resulting in an IOError due to the path being invalid and the parent
directory being nonexistent.

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