summaryrefslogtreecommitdiff
path: root/pym
Commit message (Collapse)AuthorAgeFilesLines
* In EbuildProcess._start(), don't open the log file during the clean phaseZac Medico2008-11-211-1/+5
| | | | | | | | since the open file can result in an nfs lock on $T/build.log which prevents the clean phase from removing $T. Thanks to Jeremy Olexa <darkside@g.o> for reporting. svn path=/main/trunk/; revision=12016
* In JobStatusDisplay, always flush the output stream after writing to it.Zac Medico2008-11-211-0/+4
| | | | svn path=/main/trunk/; revision=12014
* When given an ambiguous ebuild name to install, format the list of choicesZac Medico2008-11-211-8/+37
| | | | | | | in emerge --search format if --quiet mode is not enabled, otherwise just show a brief list. Thanks to Markus Meier <maekke@g.o> for the suggestion. svn path=/main/trunk/; revision=12012
* Remove inappropriate backslash escaping inside _db_escape_string().Zac Medico2008-11-201-1/+2
| | | | svn path=/main/trunk/; revision=12010
* Inside _parse_data(), don't rely on the magic 22 line count for the flat_listZac Medico2008-11-201-27/+18
| | | | | | | format, since it doesn't make a significant performance difference and it places an artificial limit on the number of keys that can be stored. svn path=/main/trunk/; revision=12008
* Bug #247370 - Use a private PORTAGE_TMPDIR for --fetchonly mode in orderZac Medico2008-11-202-8/+15
| | | | | | | | | | | do avoid locking the normal build dir location (similar to bug #245231). The EbuildFetchPretend class is renamed to EbuildFetchonly and it's used for --fetchonly mode regardless of whether --pretend is enabled. Also, fix stdout/stderr flushing in JobStatusDisplay.displayMessage() and portage.spawn() to ensure output always occurs in the correct order when displaying pkg_nofetch() output in --fetchonly mode. svn path=/main/trunk/; revision=12006
* Remove --fetchonly --resume time.sleep() call which is an artifact from theZac Medico2008-11-191-5/+0
| | | | | | previous parallel-fetch implementation. svn path=/main/trunk/; revision=12001
* Bug #245716 - When generating QA notices for 'command not found' messages inZac Medico2008-11-191-1/+3
| | | | | | | the build log, exclude messages that are emitted from configure scripts since those are normal in some cases. svn path=/main/trunk/; revision=11999
* Move the repo_name check/warning into a function.Zac Medico2008-11-181-23/+27
| | | | svn path=/main/trunk/; revision=11995
* When warning about 'missing repo_name', also give the exact path where theZac Medico2008-11-181-9/+17
| | | | | | | | entry should exist, and explain that it should be a plain text file containing a unique name of the first line. This should give the users enough information to correct the problem without needing to seek help. svn path=/main/trunk/; revision=11994
* Make serialize_eclasses() sort eclass names.Zac Medico2008-11-181-2/+2
| | | | svn path=/main/trunk/; revision=11992
* For emerge --metadata runs, update _eclasses_ metadata to insert local eclassZac Medico2008-11-182-19/+40
| | | | | | paths. svn path=/main/trunk/; revision=11990
* Store the _eclasses_ field instead of INHERITED.Zac Medico2008-11-171-8/+0
| | | | svn path=/main/trunk/; revision=11986
* Bug #139134 - Make the flat_hash and metadata modules write the _mtime_Zac Medico2008-11-172-2/+3
| | | | | | | | | | field inside the file instead of mangling the mtime of the cache entry file. Also, fix FsBased._ensure_access() to properly skip the utime() call when no mtime is passed in. Theses cache changes are compatible with current stable portage (2.1.4.x), which uses the _mtime_ field contained in the file when available. svn path=/main/trunk/; revision=11984
* Fix the 'jobserver unavailable' regex to match gmake.Zac Medico2008-11-171-1/+1
| | | | svn path=/main/trunk/; revision=11974
* Add a QA Notice for 'jobserver unavailable' from make in the build log. ThanksZac Medico2008-11-161-0/+15
| | | | | | to Diego 'Flameeyes' Pettenò <flameeyes@g.o> for the suggestion. svn path=/main/trunk/; revision=11972
* When a "slot conflict" occurs due to USE dependencies, display the usualZac Medico2008-11-161-1/+4
| | | | | | | slot conflict output together with the unsatisfied USE dependency output, since both might be useful. svn path=/main/trunk/; revision=11960
* Fix logic inside PollScheduler._can_add_job() so that load average isZac Medico2008-11-151-1/+1
| | | | | | properly considered when a single job is running. svn path=/main/trunk/; revision=11958
* Make NewsManager.updateItems() and getUnreadItems() return early ifZac Medico2008-11-151-5/+11
| | | | | | | PermissionDenied errors are encountered when attempting to read the skip or unread files. svn path=/main/trunk/; revision=11956
* Inside depgraph._add_pkg(), handle the case where multiple differentZac Medico2008-11-151-0/+14
| | | | | | | | | instances of the same version (typically one installed and another not yet installed) have been pulled into the graph due to a USE dependency. The "slot collision" display is not helpful in a case like this, so display it as an unsatisfied dependency. Thanks to Peter Volkov <pva@g.o> for reporting. svn path=/main/trunk/; revision=11954
* Check the return value from depgraph._add_pkg() when adding library consumersZac Medico2008-11-151-2/+5
| | | | | | inside action_depclean(). svn path=/main/trunk/; revision=11953
* Bug #246821 - Avoid TypeError from binarytree.isremote() by returning earlyZac Medico2008-11-151-1/+1
| | | | | | if self._remotepkgs is None due to PORTAGE_BINHOST being unset. svn path=/main/trunk/; revision=11951
* Make depgraph.display_problems() send unsatisfied dependency ouput to stdout,Zac Medico2008-11-151-4/+6
| | | | | | for parsing by programs such as autounmask. svn path=/main/trunk/; revision=11949
* Bug #246853 - Redirect all ouput from depgraph.display_problems() to stderr.Zac Medico2008-11-151-0/+22
| | | | svn path=/main/trunk/; revision=11948
* Bug #236207 - Replace some hardcoded colors with color codes, and useZac Medico2008-11-151-23/+33
| | | | | | portage.output.EOutput() where appropriate. svn path=/main/trunk/; revision=11935
* Bug #173284 - Update config update counting code in chk_updated_cfg_files()Zac Medico2008-11-151-3/+3
| | | | | | so hidden directories are ignored. svn path=/main/trunk/; revision=11933
* Bug #236714 - Handle PortagePackageException raised from Manifest.create().Zac Medico2008-11-151-0/+3
| | | | svn path=/main/trunk/; revision=11926
* Make digestgen() handle PermissionDenied internally by returning failure, soZac Medico2008-11-151-1/+5
| | | | | | callers like repoman don't need exception handling. svn path=/main/trunk/; revision=11924
* Bug #236683 - Fix PermissionDenied handling to report the exception type.Zac Medico2008-11-151-1/+1
| | | | svn path=/main/trunk/; revision=11922
* Bug #243022 - Inside dblink.mergeme(), when merging a directory and a symlinkZac Medico2008-11-151-1/+2
| | | | | | | is in the way, verify that if points to a directory before accepting it, otherwise move it out of the way. svn path=/main/trunk/; revision=11920
* Bug #216190 - Make dblink.treewalk() bail out rather than install a packageZac Medico2008-11-151-2/+23
| | | | | | with file paths containing newlines. svn path=/main/trunk/; revision=11918
* Fix new* and do* ebuild helpers to generate consistent error messages forZac Medico2008-11-151-0/+12
| | | | | | | | missing files and generate an appropriate QA Notice when such an error is detected in the build log. Thanks to Diego 'Flameeyes' Pettenò <flameeyes@g.o> for the suggestion. svn path=/main/trunk/; revision=11916
* Make the EbuildQuote check filter out matches that appear to be an argumentZac Medico2008-11-141-2/+14
| | | | | | | | to a message command. For example: false || ewarn "foo $WORKDIR/bar baz" Thanks to Diego 'Flameeyes' Pettenò <flameeyes@g.o> for reporting this issue (currently triggered by ruby-prof-0.7.0.ebuild). svn path=/main/trunk/; revision=11913
* Use apply_secpass_permissions() to avoid OperationNotPermitted errors whenZac Medico2008-11-131-3/+3
| | | | | | not allowed to chown files to root uid. svn path=/main/trunk/; revision=11873
* Use grabfile() instead of grablines(), to ignore empty lines.Zac Medico2008-11-131-4/+4
| | | | svn path=/main/trunk/; revision=11872
* Add quote from GLEP 42 about permission bits.Zac Medico2008-11-131-0/+4
| | | | svn path=/main/trunk/; revision=11871
* Misc fixes and cleanups in NewsManager.Zac Medico2008-11-131-68/+71
| | | | svn path=/main/trunk/; revision=11870
* Return early from NewsManager.updateItems() if the news path listdir callZac Medico2008-11-131-6/+4
| | | | | | fails. svn path=/main/trunk/; revision=11869
* Always return early from NewsManager.updateItems() if self.unread_path can'tZac Medico2008-11-131-10/+12
| | | | | | be created. svn path=/main/trunk/; revision=11868
* Use a simpler approach instead of implementing NewsItem.__getattr__().Zac Medico2008-11-121-5/+3
| | | | svn path=/main/trunk/; revision=11867
* * Add NewsItem.isValid() and DisplayRestriction.isValid() methods and useZac Medico2008-11-121-5/+33
| | | | | | | use them to check validity inside NewsManager.updateItems(). * Make DisplayInstalledRestriction.isValid() check validity of the atom. svn path=/main/trunk/; revision=11866
* Sort the return value from cpv_all() inside vardbapi._counter_hash() insteadZac Medico2008-11-121-2/+4
| | | | | | of sorting them in side cpv_all(). Thanks to Brian Harring for the suggestion. svn path=/main/trunk/; revision=11865
* Inside NewsManager.updateItems(), use a mutable set for skiplist and sort theZac Medico2008-11-121-3/+4
| | | | | | contents when writing the file. svn path=/main/trunk/; revision=11864
* Instead of raising a TypeError from the NewsItem constructor, check the pathZac Medico2008-11-121-6/+4
| | | | | | inside NewsManager.updateItems() before the NewsItem constructor is called. svn path=/main/trunk/; revision=11863
* Use a frozenset to optimize skiplist containment checks insideZac Medico2008-11-121-1/+1
| | | | | | NewsManager.updateItems(). svn path=/main/trunk/; revision=11862
* Bug #246451 - Inside SecuritySet._reduce(), use portdbapi.xmatch("match-all")Zac Medico2008-11-121-1/+1
| | | | | | | in order do be consistent with portage.glsa.getMinUpgrade() which also uses match-all. svn path=/main/trunk/; revision=11861
* Make post_emerge() exit early if it detects that the vdb state hasn't changed.v2.2_rc14Zac Medico2008-11-113-0/+26
| | | | | | | This works by comparing a hash of the COUNTER values for all packages in the vdb. svn path=/main/trunk/; revision=11859
* Allow --keep-going to continue in some cases when a runtime dependency hasZac Medico2008-11-111-2/+9
| | | | | | | failed to build or install. This involves pruning off the parts of the graph containing installed packages with unsatisfied dependencies. svn path=/main/trunk/; revision=11858
* Simplify code for cloning config instances inside Scheduler.merge().Zac Medico2008-11-111-1/+1
| | | | svn path=/main/trunk/; revision=11856
* Make FindPortdir() fall back to have_profile_dir() checks if it can't matchZac Medico2008-11-111-6/+20
| | | | | | | | the current location with anything from PORTDIR_OVERLAY. Assume that an overlay will contain at least a "repo_name" file while a master repo (portdir) will contain at least a "profiles.desc" file. svn path=/main/trunk/; revision=11855