summaryrefslogtreecommitdiffstats
path: root/pym
Commit message (Collapse)AuthorAgeFilesLines
* 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-142-56/+82
| | | | | | | | 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
* Make sure the pkg_nofetch phase is only called once when in fetchonly mode.Zac Medico2008-10-131-1/+1
| | | | svn path=/main/trunk/; revision=11689
* Make fetch() fetch as many files as possible, even if some fail, when inZac Medico2008-10-131-0/+6
| | | | | | fetchonly mode. svn path=/main/trunk/; revision=11688
* Don't return from fetch() due to fetch restriction when in "listonly" mode.Zac Medico2008-10-131-0/+2
| | | | svn path=/main/trunk/; revision=11687
* 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-122-24/+49
| | | | | | | output to stderr. This requires PORTAGE_BUILDDIR locking for bug #239560 and also for elog message storage. svn path=/main/trunk/; revision=11685
* Inside fetch(), don't call pkg_nofetch when in parallel-fetch mode sinceZac Medico2008-10-121-10/+15
| | | | | | it will get call again later anyway. svn path=/main/trunk/; revision=11683
* 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
* When warning about package categories that haven't been configured viaZac Medico2008-10-112-3/+6
| | | | | | | /etc/portage/categories, join the path with PORTAGE_CONFIGROOT. Thanks to Ned Ludd <solar@g.o> for reporting. svn path=/main/trunk/; revision=11677
* Bug #241204 - Fix dbapi.invalidentry() calls inside vardbapi.cpv_all() toZac Medico2008-10-111-2/+2
| | | | | | correctly join the path via self.getpath(). svn path=/main/trunk/; revision=11676
* 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
* Create a new AmbiguousPackageName exception to raise fromZac Medico2008-10-102-1/+11
| | | | | | | | portage.cpv_expand(). It inherits from ValueError, for backward compatibility with calling code that already handles ValueError. svn path=/main/trunk/; revision=11670
* Grab make.globals from GLOBAL_CONFIG_PATH if available and fall back to theZac Medico2008-10-091-2/+5
| | | | | | legacy location if necessary. svn path=/main/trunk/; revision=11669
* 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
* Fix apparent breakage from r11593 (slot dep support):Zac Medico2008-10-081-6/+22
| | | | | | | | * 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
* 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
* Instead of using inheritance, reference the ConfigParser part of SetConfig asZac Medico2008-10-071-24/+30
| | | | | | | an attribute in case we want to swap out the ConfigParser implemention and no longer want to implement the whole interface. svn path=/main/trunk/; revision=11653
* 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-072-15/+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 fetch(), never call the pkg_nofetch phase when in "listonly" mode.Zac Medico2008-10-061-3/+1
| | | | svn path=/main/trunk/; revision=11644
* In doebuild(), don't create build dirs when "listonly" fetch mode.Zac Medico2008-10-061-1/+2
| | | | svn path=/main/trunk/; revision=11643
* 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
* Avoid raising a KeyError from display_preserved_libs() in cases when noZac Medico2008-10-051-3/+4
| | | | | | owners are found for a particular library consumer. svn path=/main/trunk/; revision=11633
* * When ensuring sane $PWD in ebuild.sh, die if the `cd "$PORTAGE_BUILDDIR"`Zac Medico2008-10-051-2/+1
| | | | | | | | call fails. * Create $PORTAGE_BUILDDIR for the "fetch" phase too since it might be necessary to call pkg_nofetch. svn path=/main/trunk/; revision=11628
* Only update the confmem file when something has changed.Zac Medico2008-10-051-3/+5
| | | | svn path=/main/trunk/; revision=11627
* Fix PreservedLibsRegistry.store() so that it only rewrites the data file whenZac Medico2008-10-051-2/+3
| | | | | | something has changed. svn path=/main/trunk/; revision=11626
* A cpv can be returned from dbapi.match() as an old-style virtual match evenZac Medico2008-10-051-6/+25
| | | | | | | | | | | in cases when the package does not actually PROVIDE the virtual. Filter out any such false matches inside depgraph._select_package() and _show_unsatisfied_dep(). Thanks to Ned Ludd <solar@g.o> for reporting this issue which was discovered when attempting to install virtual/libc on uclibc profile. Apparently the uclibc ebuilds need to be fixed to properly set PROVIDE when the metadata cache is generated. svn path=/main/trunk/; revision=11622
* Handle AttributeError in case os.getloadavg does not exist, like when pythonZac Medico2008-10-041-2/+2
| | | | | | is built agains uclibc. svn path=/main/trunk/; revision=11621
* Fix depgraph._add_pkg() to ensure that the existing package in the graphZac Medico2008-10-041-1/+10
| | | | | | | | | | matches the required atom in cases when a different package has been passed in. This solves a problem with silently unsatisfied USE deps that was reported by Jorge Manuel B. S. Vicetto <jmbsvicetto@g.o>. Now the unsatisfied dependency will result in a "slot conflict" rather than be silently ignored. svn path=/main/trunk/; revision=11618
* Make depgraph._add_pkg() take a Dependency instance. This provides access toZac Medico2008-10-041-14/+21
| | | | | | | | the atom which pulled in the package, which may be needed in order to verify that a different package that's been added to the graph is capable of satisfying the atom. svn path=/main/trunk/; revision=11617
* Remove pointless copying of the owners dict inside display_preserved_libs().Zac Medico2008-10-021-3/+1
| | | | svn path=/main/trunk/; revision=11611
* In JobStatusDisplay._update(), set _displayed = True when ruturning early dueZac Medico2008-10-021-0/+1
| | | | | | | to stdout not being a tty. This fixes a problem excess output which was reported by Daniel Robbins. svn path=/main/trunk/; revision=11609
* Optimize display_preserved_libs() by using a single getFileOwnerMap() to lookZac Medico2008-10-021-3/+17
| | | | | | up all the files. svn path=/main/trunk/; revision=11608
* Fix broken logic in Scheduler._main_loop() which would allow the main loop toZac Medico2008-10-021-1/+1
| | | | | | | exit while one or more merges are still scheduled. Thanks to Patrick Lauer for reporting. svn path=/main/trunk/; revision=11607