summaryrefslogtreecommitdiffstats
path: root/pym
Commit message (Collapse)AuthorAgeFilesLines
* 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
* 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
* 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-241-4/+4
| | | | svn path=/main/trunk/; revision=7803
* 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
* 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 #192321 - Clean dir.old cruft so that they don't prevent unmerge ofZac Medico2007-09-131-0/+10
| | | | | | otherwise empty directories. svn path=/main/trunk/; revision=7774
* Bug #192195 - In dir_get_list(), append a trailing / to the address whenZac Medico2007-09-121-0/+4
| | | | | | necessary in order to avoid getting a 400 error from the http server. svn path=/main/trunk/; revision=7771
* Catch errno.ENOTDIR instead of using os.path.isdir().Zac Medico2007-09-121-2/+3
| | | | svn path=/main/trunk/; revision=7770
* Bug #192298 - Handle PermissionDenied error in cache.update_eclasses().Zac Medico2007-09-121-2/+15
| | | | svn path=/main/trunk/; revision=7769
* Adjust for r7767Marius Mauch2007-09-111-5/+5
| | | | svn path=/main/trunk/; revision=7768
* Remove name from PackageSet, it's pointless as the caller has to keep track ↵Marius Mauch2007-09-119-46/+46
| | | | | | of the name himself anyway svn path=/main/trunk/; revision=7767
* or I was right the first time :(Alec Warner2007-09-091-1/+1
| | | | svn path=/main/trunk/; revision=7766
* sigh, or, not andAlec Warner2007-09-091-1/+1
| | | | svn path=/main/trunk/; revision=7765
* compress two loop iterations into oneAlec Warner2007-09-081-2/+1
| | | | svn path=/main/trunk/; revision=7764
* In depgraph.altlist(), try to merge asap_nodes sooner by giving them an ↵Zac Medico2007-09-081-1/+2
| | | | | | exemption from the accept_root_node flag. (branches/2.1.2 r7762) svn path=/main/trunk/; revision=7763
* Fix a typo.Zac Medico2007-09-081-1/+1
| | | | svn path=/main/trunk/; revision=7761
* Bug #190268 - Avoid unwanted sandbox violations in src_test().Zac Medico2007-09-082-3/+10
| | | | | | | | - Allow SANDBOX_* variables to pass through. - Don't try to create an sandbox instance inside a test case in order to interaction with SANDBOX_* variables in src_test(). svn path=/main/trunk/; revision=7759
* Implement/fix testcases for some PackageSet subclassesMarius Mauch2007-09-072-14/+25
| | | | svn path=/main/trunk/; revision=7758
* Fix incorrect parse check as value lists in KeyListFileLoader might be ↵Marius Mauch2007-09-071-5/+32
| | | | | | empty, add support for value validators in relevant Loaders svn path=/main/trunk/; revision=7757
* Undo some unwanted changesMarius Mauch2007-09-076-176/+172
| | | | svn path=/main/trunk/; revision=7756
* return the full path, not just the filenameMarius Mauch2007-09-071-1/+1
| | | | svn path=/main/trunk/; revision=7755
* fix errors in call logicMarius Mauch2007-09-071-2/+2
| | | | svn path=/main/trunk/; revision=7754
* Fix minor issues with loaders in the static file loader, fix quoting and ↵Alec Warner2007-09-073-23/+58
| | | | | | import style in news.py. Add TextFileLoader and EnvLoader loaders svn path=/main/trunk/; revision=7753
* dbapi currently depends on being subclassed and having the subclasses ↵Alec Warner2007-09-072-12/+77
| | | | | | impelement certain functions (that aren't even implemented IN dbapi, so a particular child has no idea what functions are actually required). Try to make this cleared by adding stubs in dbapi. There should be no behavior change here because these cases would be Attribute errors in the current scheme. Also add a horribly bad testdbapi with stub funcs to use in testing code. Remove regexes with possibly faster string comparisons. svn path=/main/trunk/; revision=7752
* test news item filteringAlec Warner2007-09-072-36/+50
| | | | svn path=/main/trunk/; revision=7751