summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Initialize ${TMP} before registering the die trap so thatZac Medico2007-09-241-1/+1
| | | | | | we're sure which directory die will clean up. svn path=/main/trunk/; revision=7802
* Bug #190179 - Use `prelink --verify filename` to write theZac Medico2007-09-241-5/+9
| | | | | | | | | | temp file via stdout since --undo fails when run as a normal non-superuser because it tries to chown the output file. Also, use mkstemp() to eliminate the need for locking the temp file. Thanks to Israel G. Lugo <israel.lugo@lugosys.com> for the initial patch. svn path=/main/trunk/; revision=7801
* s/note/not/ reported by p-y.Zac Medico2007-09-241-1/+1
| | | | svn path=/main/trunk/; revision=7800
* fix possible information leak vulnerability when doing a merge of ↵Mike Frysinger2007-09-241-11/+22
| | | | | | configuration files and be better about handling of whitespace in $TMP in a few places svn path=/main/trunk/; revision=7799
* tweak get_config() so that it only executes one external binary (sed) ↵Mike Frysinger2007-09-241-9/+15
| | | | | | instead of chaining multiple ones svn path=/main/trunk/; revision=7798
* When --deep is not enabled, many dependencies are dicarded andZac Medico2007-09-231-13/+25
| | | | | | | | | | | | | left out of the digraph. This patch prevents dependencies from being discarded in some cases where the are needed in order to optimize merge order. It also modifies the DepPriority.rebuild attribute so that it only applies to build time dependencies. This leads to better merge order in some cases when --deep is not enabled. For example, `emerge xf86-input-keyboard xorg-server` will now properly merge xorg-server before xf86-input-keyboard (problem from bug #192254, comment #5). svn path=/main/trunk/; revision=7797
* In spawn(), initialize default fd_pipes before doing the stdout/stderr flush.Zac Medico2007-09-231-8/+7
| | | | svn path=/main/trunk/; revision=7796
* Flush stderr and stdout if their file descriptors are in fd_pipes at the ↵Zac Medico2007-09-222-4/+10
| | | | | | beginning of spawn(). svn path=/main/trunk/; revision=7795
* Flush stdout before calling pkg_info() to ensure that output always shows in ↵Zac Medico2007-09-221-0/+4
| | | | | | the correct order. svn path=/main/trunk/; revision=7794
* When --with-bdeps=y is enabled for built packages, pull in build time deps asZac Medico2007-09-221-6/+16
| | | | | | | | | | requested, but marked them as "satisfied" since they are not strictly required. This allows more freedom in the merge order calculation for solving circular dependencies. Don't convert to PDEPEND since that could make --with-bdeps=y less effective if it is used to adjust merge order to prevent built_with_use() calls from failing. svn path=/main/trunk/; revision=7793
* Mask binary packages if their CHOST does not match the one defined in make.conf.Zac Medico2007-09-192-7/+23
| | | | svn path=/main/trunk/; revision=7792
* Bug #190781 - Don't include --oneshot in the options that --update implies.Zac Medico2007-09-181-2/+1
| | | | svn path=/main/trunk/; revision=7790
* Use ensure_dirs() and apply_permissions() to avoid redundant chown/chmod ↵Zac Medico2007-09-162-8/+5
| | | | | | calls. This helps avoid 'Permission denied' errors during elog_process() when the ebuild command is run by normal user (issue reported by graaff). svn path=/main/trunk/; revision=7789
* Revert the workaround for bug #192341 since it will be much cleaner if we ↵Zac Medico2007-09-151-37/+0
| | | | | | fall back to spawning the chflags command when the freebsd module is unavailable. svn path=/main/trunk/; revision=7785
* Bug #192341 - Make emerge bail out on FreeBSD if the freebsd python moduleZac Medico2007-09-131-0/+37
| | | | | | | | | fails to import. Display a notification that "ignore-missing-freebsd-module" can be added to FEATURES in order to bypass the error. If that feature is enabled but the freebsd python module imported successfully, show a warning message since the user should remove if from FEATURES asap. svn path=/main/trunk/; revision=7780
* Bug #192346 - The emerge --help shows a -i option that does not exist.Zac Medico2007-09-131-1/+1
| | | | svn path=/main/trunk/; revision=7779
* Bug #191645 - Cross-reference the `ebuild --force digest` docs with theZac Medico2007-09-132-3/+7
| | | | | | FEATURES=assume-digests docs. svn path=/main/trunk/; revision=7778
* Add some additional notes about the behavior of FEATURES=assume-digests underZac Medico2007-09-131-1/+5
| | | | | | various conditions. svn path=/main/trunk/; revision=7777
* Bug #191645 - Document the --force option.Zac Medico2007-09-131-0/+6
| | | | svn path=/main/trunk/; revision=7776