summaryrefslogtreecommitdiffstats
path: root/pym/portage
Commit message (Collapse)AuthorAgeFilesLines
* ignore missing filesMarius Mauch2007-10-051-2/+3
| | | | svn path=/main/trunk/; revision=7948
* copy of gentoolkit r451Marius Mauch2007-10-051-1/+1
| | | | svn path=/main/trunk/; revision=7946
* In portdbapi.aux_get(), simplify code by using stringZac Medico2007-10-041-9/+2
| | | | | | | | manipulation instead of int conversion to manipulate negative EAPI when deciding whether or not regen is necessary. svn path=/main/trunk/; revision=7919
* Include the package name in all exceptions raised fromZac Medico2007-10-042-3/+5
| | | | | | | | portdbapi.getfetchlist() so that a redundant and sometimes inaccurate message doesn't have to be shown when the error is caught in digestgen(). svn path=/main/trunk/; revision=7917
* Make portdbapi.getfetchlist() bail out if the EAPIZac Medico2007-10-041-1/+8
| | | | | | | | is unsupported. This makes it impossible for an unsupported EAPI to result in invalid Manifest generation. svn path=/main/trunk/; revision=7916
* Add EAPI masking support for binary packages.Zac Medico2007-10-041-1/+1
| | | | svn path=/main/trunk/; revision=7913
* 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
* 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 #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
* Ignore ENOTDIR from unmerge unlink calls.Zac Medico2007-09-271-1/+1
| | | | svn path=/main/trunk/; revision=7856
* 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
* 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-221-0/+10
| | | | | | beginning of spawn(). svn path=/main/trunk/; revision=7795
* Mask binary packages if their CHOST does not match the one defined in make.conf.Zac Medico2007-09-191-1/+1
| | | | svn path=/main/trunk/; revision=7792
* 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
* 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
* 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
* 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
* Last commit added more tests for sets and taught me what I was doing wrong ↵Alec Warner2007-09-072-0/+0
| | | | | | ;) This commit adds yet more tests svn path=/main/trunk/; revision=7750
* fighting with svn over weirdnessAlec Warner2007-09-074-0/+49
| | | | svn path=/main/trunk/; revision=7749
* Rewrite testing to use __test__ instead of hardcoded dirsAlec Warner2007-09-078-2/+13
| | | | svn path=/main/trunk/; revision=7748
* For bug #190268, filter SANDBOX_* from the calling environment so that they ↵Zac Medico2007-09-071-1/+2
| | | | | | can't interfere with ebuild.sh. svn path=/main/trunk/; revision=7746
* Reformat collision-protect output so that the list of file collisions is ↵Zac Medico2007-08-301-2/+7
| | | | | | shown below the banner. This puts more distance between the collision list and the list of files that prepstrip often displays just above, hopefully preventing user confusion about which files had collisions. svn path=/main/trunk/; revision=7720