summaryrefslogtreecommitdiffstats
path: root/pym/_emerge
Commit message (Collapse)AuthorAgeFilesLines
* Fix $ROOT handlink inside display_preserved_libs().Zac Medico2008-11-081-3/+3
| | | | svn path=/main/trunk/; revision=11829
* Handle CommandNotFound exceptions if the scanelf binary happens to be missing,Zac Medico2008-11-081-12/+22
| | | | | | and disable preserve-libs code in that case. svn path=/main/trunk/; revision=11827
* Remove the special package.keywords mask warning from bug #223447 sinceZac Medico2008-11-061-34/+4
| | | | | | | --depclean now uses the depgraph class and therefore should be more consistent with the update algorithm. svn path=/main/trunk/; revision=11815
* Bug #245661 - Never enable --complete-graph automatically since it's confusingZac Medico2008-11-061-14/+3
| | | | | | for users. svn path=/main/trunk/; revision=11814
* Synchronize portage update/restart logic in dblink.merge() andZac Medico2008-11-041-9/+3
| | | | | | | depgraph.display() so it's consistent with Scheduler._is_restart_necessary(). Thanks to Jeremy Olexa <darkside@g.o> for reporting. svn path=/main/trunk/; revision=11808
* Free some memory by clearing the LinkageMap cache when it's not needed.Zac Medico2008-11-041-0/+1
| | | | svn path=/main/trunk/; revision=11807
* Bug #245358 - For unsatisfied dependencies, display the parent nodes and theZac Medico2008-11-031-6/+18
| | | | | | argument that pulled them in. svn path=/main/trunk/; revision=11805
* Remove duplicate code inside EbuildFetchPretend._execute().Zac Medico2008-11-021-3/+0
| | | | svn path=/main/trunk/; revision=11801
* Remove locking from EbuildFetchPretend since it uses a private temp directoryZac Medico2008-11-021-5/+10
| | | | | | now (since bug #245231). svn path=/main/trunk/; revision=11800
* Bug #245231 - Make EbuildFetchPretend use a private temp directory in orderZac Medico2008-11-021-2/+18
| | | | | | to avoid locking the main one. svn path=/main/trunk/; revision=11796
* In Scheduler._calc_resume_list(), use self.pkgsettings instead of the theZac Medico2008-11-011-1/+1
| | | | | | temportary depgraph's. svn path=/main/trunk/; revision=11787
* Remove unused imports.Zac Medico2008-11-011-3/+3
| | | | svn path=/main/trunk/; revision=11774
* Use portage.const.PORTAGE_PACKAGE_ATOM where appropriate.Zac Medico2008-10-301-2/+4
| | | | svn path=/main/trunk/; revision=11758
* Bug #244975 - Don't allow the user to make portage unmerge itself sinceZac Medico2008-10-301-1/+24
| | | | | | there's never any valid reason to do so. svn path=/main/trunk/; revision=11756
* Avoid unnecessary aux_get calls inside Scheduler._pkg() by getting the existingZac Medico2008-10-301-4/+7
| | | | | | Package instance from the digraph. svn path=/main/trunk/; revision=11752
* Make config.setcpv() store the ebuild metadata inside self.configdict["pkg"],Zac Medico2008-10-291-0/+1
| | | | | | | and reuse this metadata inside doebuild() in order to avoid redundant portdbapi.aux_get() calls. svn path=/main/trunk/; revision=11743
* Make SetConfig.getSetAtoms() raise a PackageSetNotFound exception whenZac Medico2008-10-281-2/+9
| | | | | | | | 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
* Add "bzr" to the lists of live eclasses.Zac Medico2008-10-231-0/+1
| | | | svn path=/main/trunk/; revision=11720
* Bug #233296 - Add minimal PROPERTIES=interactive support by simply forcingZac Medico2008-10-211-0/+36
| | | | | | | all package output to stdio whenever the merge list contains one or more interactive packages. svn path=/main/trunk/; revision=11715
* Bug #186842 - Suppress file merge display, as previously done in --quiet ↵Zac Medico2008-10-211-0/+4
| | | | | | | | | 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
* Handle the case that was intended to be fixed by r11702 (which got reverted).Zac Medico2008-10-201-0/+16
| | | | svn path=/main/trunk/; revision=11705
* Revert previous 2 commits since they broke "selective" behavior.Zac Medico2008-10-201-5/+10
| | | | svn path=/main/trunk/; revision=11704
* Simplify logic from the previous commit.Zac Medico2008-10-201-5/+4
| | | | svn path=/main/trunk/; revision=11703
* Remove the "found_available_arg" variable from depgraph._select_pkg() and useZac Medico2008-10-191-6/+2
| | | | | | | | | | | 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
* Bug #241366 - Only suggest to run `emaint --check world` when the atom isZac Medico2008-10-141-1/+4
| | | | | | a direct member of the world set (rather than from a nested set). svn path=/main/trunk/; revision=11691
* When emerge --keep-going bails due to missing dependencies, show the errorZac Medico2008-10-141-55/+75
| | | | | | | | 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
* Bug #234301 - When fetch fails, include the path of the log file in theZac Medico2008-10-121-3/+8
| | | | | | | 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
* Bug #241118 - Re-enable pkg_nofetch for emerge --pretend --fetch, but directZac Medico2008-10-121-14/+26
| | | | | | | output to stderr. This requires PORTAGE_BUILDDIR locking for bug #239560 and also for elog message storage. svn path=/main/trunk/; revision=11685
* Now that only prefetch (parallel-fetch) output goes to the global fetchZac Medico2008-10-121-10/+4
| | | | | | log, update code to remove inappropriate references to this log. svn path=/main/trunk/; revision=11682
* Remove the prefetch logic in EbuildFetcher._pipe() since prefetchers areZac Medico2008-10-121-1/+1
| | | | | | always in the background anyway. svn path=/main/trunk/; revision=11681
* Buge #241100 - Make EbuildFetcher use a pty when appropriate, so that fetcherZac Medico2008-10-121-0/+12
| | | | | | progress bars, like wget has, will work properly. svn path=/main/trunk/; revision=11680
* Make the Scheduler class treat failed fetches the same as other failedZac Medico2008-10-121-46/+11
| | | | | | | | 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
* In EbuildFetcher._start(), in order to ensure that a new log is created whenZac Medico2008-10-111-9/+16
| | | | | | appropriate, clean up PORTAGE_BUILDDIR if appropriate. svn path=/main/trunk/; revision=11678
* Migrate code from plain ValueError to AmbiguousPackageName where appropriateZac Medico2008-10-101-10/+7
| | | | | | (inherits from ValueError for backward compatibility). svn path=/main/trunk/; revision=11672
* Bug #241132 - Handle AmbiguousPackageName exceptions for atoms passed to theZac Medico2008-10-101-5/+4
| | | | | | --info action. svn path=/main/trunk/; revision=11671
* Remove redundant os.close(master_fd) call inside SpawnProcess._start() sinceZac Medico2008-10-091-1/+0
| | | | | | | | | 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
* In EbuildFetcher._set_returncode(), don't clean up PORTAGE_BUILDDIR ifZac Medico2008-10-091-1/+3
| | | | | | keepwork or keeptemp are in FEATURES. svn path=/main/trunk/; revision=11661
* Don't show the repo display when the merge list is empty.Zac Medico2008-10-081-1/+1
| | | | svn path=/main/trunk/; revision=11660
* In EbuildBuild._fetch_exit(), clean up the fetch log if fetch was successful.Zac Medico2008-10-081-0/+7
| | | | svn path=/main/trunk/; revision=11658
* Since EbuildBuild no longer directs it's EbuildFetcher instance's outputZac Medico2008-10-081-9/+2
| | | | | | | to the global fetch log, there's no need to schedule it on the fetch queue. svn path=/main/trunk/; revision=11656
* Before returning config instances from Scheduler._allocate_config(), call theZac Medico2008-10-081-0/+4
| | | | | | | | | | 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
* Generate elog messages for failed fetches. This restores some functionalityZac Medico2008-10-071-22/+26
| | | | | | that was removed in r11645. svn path=/main/trunk/; revision=11654
* When EbuildBuild encounters a failed fetch, propagee the log path so thatZac Medico2008-10-071-0/+2
| | | | | | it can be properly displayed in the status display. svn path=/main/trunk/; revision=11649
* Make EbuildFetcher clean up the build dir after failures in fetchonly modeZac Medico2008-10-071-1/+1
| | | | | | since the log is in emerge-fetch.log anyway. svn path=/main/trunk/; revision=11648
* Make EbuildFetcher direct fetch output to the normal build log. By keeping theZac Medico2008-10-071-10/+19
| | | | | | | | output in the build log instead of the global emerge-fetch.log file, output from a possible fetch failure can be recovered and displayed later. TODO: Convert failed fetch to elog message as suggested in bug #234301. svn path=/main/trunk/; revision=11647
* Fix EbuildFetcher._wait_hook() so it can be called more than once withoutZac Medico2008-10-071-10/+11
| | | | | | throwing an AttributeError. svn path=/main/trunk/; revision=11646
* Bug #234301 - Add support to EbuildFetcher to collect elog messages thatZac Medico2008-10-071-5/+45
| | | | | | | | might be generated during the pkg_nofetch phase. This involves maintaining a lock on PORTAGE_BUILDDIR where the elog messages are collected, and cleaning up PORTAGE_BUILDDIR before releasing the lock. svn path=/main/trunk/; revision=11645
* In order to avoid "waiting for lock" messagesZac Medico2008-10-061-1/+4
| | | | | | | at the beginning, which annoy users, never spawn a prefetcher for the first package. svn path=/main/trunk/; revision=11642
* Fix KeyError raised from display_preserved_libs() when the realpath is usedZac Medico2008-10-061-2/+4
| | | | | | | as a key in consumer_map instead of the orignal path that was returned from the PreservedLibsRegistry. svn path=/main/trunk/; revision=11637
* Bug #240022 - Avoid duplicate output for the same library (due to symlinks)Zac Medico2008-10-051-1/+11
| | | | | | | | in display_preserved_libs() by using os.path.realpath() to group duplicate references together. Thanks to Fabian Groffen <grobian@g.o> for the initial patch. svn path=/main/trunk/; revision=11636