summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Non-integer EAPI isn't supported. In case it's supported inZac Medico2007-10-041-3/+9
| | | | | | | the future, assume that it's valid (rather than trigger a regen). svn path=/main/trunk/; revision=7911
* When the metadata cache contains a negative EAPI, it meansZac Medico2007-10-041-1/+7
| | | | | | | | | | | that the cache entry was generated by a version of portage that did not support the eapi. When the user upgrades to a version that now supports the previously unsupported EAPI, those cache entries need to be regenerated. Therefore, when a cache entry has a negative EAPI, check if the EAPI would be supported and trigger a regen if appropriate. svn path=/main/trunk/; revision=7910
* Bump EAPI from 0 to 1 and fix eapi_is_supported() so thatZac Medico2007-10-042-2/+8
| | | | | | it works properly with both 0 and 1. svn path=/main/trunk/; revision=7909
* no need to use "function" when defining a functionMike Frysinger2007-10-031-10/+10
| | | | svn path=/main/trunk/; revision=7908
* this isnt part of gentoolkit anymoreMike Frysinger2007-10-031-1/+1
| | | | svn path=/main/trunk/; revision=7907
* Eliminate confusing false positive error messagesZac Medico2007-10-032-8/+24
| | | | | | | | | | | | | | for SRC_URI.syntax and digestentry.unused that are reported when the SRC_URI for one or more ebuilds can't be parsed for some reason. There's no point in producing a false error here since the root cause will produce a valid error elsewhere, such as "SRC_URI.syntax" or "ebuild.sytax". Also, update the docs for the "ebuild.syntax" error to indicate that a digest verification failure can trigger it. svn path=/main/trunk/; revision=7905
* In the EbuildQuote check, combine the var_assignmentZac Medico2007-10-031-4/+1
| | | | | | | | regex together with the ignore_line regex. This also fixes an issue with the var_assignment regex allowing violations like `make DESTDIR=${D}` to slip through. svn path=/main/trunk/; revision=7904
* Filter some false positives out of the EbuildQuote check.Zac Medico2007-10-021-13/+48
| | | | | | | It might work well enough now so that we don't have to degrade it to a warning. svn path=/main/trunk/; revision=7901
* Bug #194398 - Do not log "exiting successfully" in emerge.logZac Medico2007-10-011-2/+5
| | | | | | | unless the status really is successful. Otherwise, log "exiting unsuccessfully". Thanks to David Watzke. svn path=/main/trunk/; revision=7900
* Apply new checks, minor cleanupAlec Warner2007-10-011-8/+11
| | | | svn path=/main/trunk/; revision=7899
* Rename checks as the naming was overkill (they are all obviously checks ↵Alec Warner2007-10-012-6/+24
| | | | | | being in the check module), add nesteddie check svn path=/main/trunk/; revision=7898
* Delete some extra leaky vars, also after some testing I discovered read() is ↵Alec Warner2007-10-011-4/+2
| | | | | | much faster than readlines(), see http://dev.gentoo.org/~antarus/projects/portage/stats/StringIOVsFiles.txt svn path=/main/trunk/; revision=7897
* keep old repoman names so we don't confuse peopleAlec Warner2007-10-011-1/+1
| | | | svn path=/main/trunk/; revision=7896
* Add Donnie's quote check, refactor other ebuild-content checks into classes ↵Alec Warner2007-10-011-65/+34
| | | | | | and get them out of repoman in an attempt to start moving other checks out as well. Again wonder at the price of StringIO and N passes, is the readability worth it? svn path=/main/trunk/; revision=7895
* Add new repoman check classes using StringIO; possibly need some testing, ↵Alec Warner2007-10-013-0/+189
| | | | | | obviously the old code was faster (1 iteration over the file), here we do one iteration per check, StringIO was to try and negate this by doing the checks in memory...how much of a price do we pay here? svn path=/main/trunk/; revision=7894
* Bug #142508 - Clear the screen each time before callingZac Medico2007-10-011-0/+14
| | | | | | | | the "diff" command so that any remnants of the previous config are now shown with the current one. command so that svn path=/main/trunk/; revision=7893
* Reimplement portdbapi.visible() so that is works withoutZac Medico2007-09-301-45/+51
| | | | | | | | | | | | | | | using self.xmatch(). This should be 100% compatible with the previous implementation and have comparable performance. By eliminating the xmatch() dependency, the code becomes more generically usable, like for visibility filtering of binary packages. It seems that it will be necessary to move this code outside of the dbapi since visiblity filtering is really a resolver level function and to solve things like bug #88613 will require a more flexible approach. since the current internal svn path=/main/trunk/; revision=7892
* Document interaction between config.setinst() andZac Medico2007-09-301-0/+7
| | | | | | old-style virtuals preferences. svn path=/main/trunk/; revision=7891
* Remove redundant trailing slashes from ${D}. (branches/prefix r7886)Zac Medico2007-09-291-14/+17
| | | | svn path=/main/trunk/; revision=7890
* Initialize PORTAGE_TMPDIR before using it.Zac Medico2007-09-291-3/+3
| | | | svn path=/main/trunk/; revision=7887
* revert useless quotingMike Frysinger2007-09-292-4/+2
| | | | svn path=/main/trunk/; revision=7879
* Fix quoting as reported by Drac in bug 194169Alec Warner2007-09-293-3/+3
| | | | svn path=/main/trunk/; revision=7878
* Bug #194095 - Validate dispatch-conf input in order toZac Medico2007-09-291-2/+13
| | | | | | | | prevent spurious input characters from being interpreted as user input (which can be quite confusing and gives an "out of control" feeling). svn path=/main/trunk/; revision=7877
* Bug #193548 - When scanning for config updates and an errorZac Medico2007-09-281-4/+6
| | | | | | | occurs, send find's stdout to /dev/null so that only an error message is shown. svn path=/main/trunk/; revision=7875
* When scanning for config updates, treat a symlink to an existingZac Medico2007-09-281-0/+9
| | | | | | directory as if it's just a normal directory. svn path=/main/trunk/; revision=7873
* Bug #193548 - When emerge spawns find to search for config updates,Zac Medico2007-09-281-1/+2
| | | | | | show the find output if there is an error. svn path=/main/trunk/; revision=7871
* Bug #194081 - Add EBUSY to the list of ignored errnos for unlinkZac Medico2007-09-281-4/+8
| | | | | | and rmdir calls during unmerge. svn path=/main/trunk/; revision=7869
* Handle KeyError thrown from aux_get().Zac Medico2007-09-271-5/+6
| | | | svn path=/main/trunk/; revision=7866
* Move prelink tempfile cleanup to the finally block andZac Medico2007-09-271-6/+2
| | | | | | remove unused locking code. svn path=/main/trunk/; revision=7864
* Simplify update_eclasses() a little.Zac Medico2007-09-271-8/+5
| | | | svn path=/main/trunk/; revision=7861
* Move a newline to fix formatting.Zac Medico2007-09-271-1/+2
| | | | svn path=/main/trunk/; revision=7858
* Ignore ENOTDIR from unmerge unlink calls.Zac Medico2007-09-271-1/+1
| | | | svn path=/main/trunk/; revision=7856
* Bug #194025 - Lock /var/db/pkg in post_merge() during theZac Medico2007-09-271-4/+10
| | | | | | | "Regenerating GNU info directory index" routine. svn path=/main/trunk/; revision=7853
* with help from Donnie and Ulrich, use sed to extract the statement that led ↵Mike Frysinger2007-09-271-2/+24
| | | | | | to the call to die so we can print it out in our error message svn path=/main/trunk/; revision=7852
* Bug #193486 - Use echo -n and properly quote the array argument.Zac Medico2007-09-271-1/+1
| | | | svn path=/main/trunk/; revision=7850
* Bug #193486 - Use xargs to avoid 'bash: /bin/rm: Argument list too long'Zac Medico2007-09-271-1/+2
| | | | | | | errors. This patch uses a weird tr '\001' '\000' workaround since bash doesn't echo null bytes like one might expect. svn path=/main/trunk/; revision=7848
* Do the stale env check/warning after the digest/manifestZac Medico2007-09-271-15/+23
| | | | | | phase when necessary. svn path=/main/trunk/; revision=7846
* Display a short notification when an existing ${T}/environmentZac Medico2007-09-271-0/+19
| | | | | | | | | sourced since it is easy to ignore and ignorance of it often leads to mysterious problems and general confusion. This message should not show in cases where it is obviously irrelevant, FEATURES=noauto, or PORTAGE_QUIET=1. svn path=/main/trunk/; revision=7844
* align the filename and line numbers in the output of the stack dump so that ↵Mike Frysinger2007-09-261-13/+21
| | | | | | it is much easier to read svn path=/main/trunk/; revision=7842
* Fix a typo.Zac Medico2007-09-261-1/+1
| | | | svn path=/main/trunk/; revision=7840
* someone seriously screwed the pooch on whitespacing here so clean it all upMike Frysinger2007-09-261-62/+63
| | | | svn path=/main/trunk/; revision=7839
* Bug #192706 - Do not print a summary at the end of --depcleanZac Medico2007-09-261-0/+3
| | | | | | if there is nothing to clean and --quiet is enabled. svn path=/main/trunk/; revision=7838
* Set non-blocking mode on the pty master file descriptor whileZac Medico2007-09-261-16/+14
| | | | | | | | | | | | the slave file descriptor is still held open since otherwise the fcntl call can fail on FreeBSD (the child process might have already exited and closed the slave file descriptor so we have to keep it open in order to avoid FreeBSD potentially generating an EAGAIN exception). This appoach is cleaner than triggering the exception and being forced to handle it somehow. svn path=/main/trunk/; revision=7835
* Bug #192341 - When the chflags command does not exit successfully,Zac Medico2007-09-261-4/+13
| | | | | | | | | | | try to generate an informative error. First, use stat or lstat to try and generate an ENOENT error. It the path exists, verify that the chflags binary exists and raise CommandNotFound if necessary. Finally, simply generate an EPERM OSError with the output of the command since we're not sure exactly why it failed or what the real errno was. svn path=/main/trunk/; revision=7834
* Bug #192341 - Eliminate the dependency on py-freebsd by implementingZac Medico2007-09-261-3/+16
| | | | | | | | | it's chflags() and lchflags() functions as wrappers around the chflags command (which should always be available in any case). The functions are only called when merging/unmerging files that actually have flags set so the performance difference should be negligible. svn path=/main/trunk/; revision=7808
* Bug #193695 - Add FreeBSD chflags support for rmdir()Zac Medico2007-09-251-1/+16
| | | | | | calls during unmerge. svn path=/main/trunk/; revision=7807
* In movefile() FreeBSD chflags handling, use chflags instead ofZac Medico2007-09-251-2/+4
| | | | | | | | lchflags when temporarily adjusting the flags on the parent directory since we want to follow any symlinks to the real parent directory. svn path=/main/trunk/; revision=7806
* Bug #193695 - Add support for FreeBSD chflags during unmerge. ThisZac Medico2007-09-251-11/+25
| | | | | | | code is adapted from the code that already exists in movefile() for the merge phase. svn path=/main/trunk/; revision=7805
* Bugs #168772 and #193695 - During unmerge, only ignore specificZac Medico2007-09-241-4/+18
| | | | | | exceptions raised from unlink() and rmdir() calls. svn path=/main/trunk/; revision=7804
* Bug #74615 - Quote all file paths inside dispatch-conf shell commands.Zac Medico2007-09-243-9/+9
| | | | svn path=/main/trunk/; revision=7803