summaryrefslogtreecommitdiffstats
path: root/pym
Commit message (Collapse)AuthorAgeFilesLines
* Fix UnsupportedAPIException.__str__() to strip the leadingZac Medico2007-10-041-1/+5
| | | | | | negative sign (-) from the EAPI, to prevent confusion. svn path=/main/trunk/; revision=7912
* 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
* 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
* 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
* keep old repoman names so we don't confuse peopleAlec Warner2007-10-011-1/+1
| | | | svn path=/main/trunk/; revision=7896
* 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
* 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
* 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