summaryrefslogtreecommitdiffstats
path: root/pym
Commit message (Collapse)AuthorAgeFilesLines
* Include the package name in all exceptions raised fromZac Medico2007-10-051-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(). (trunk r7917) svn path=/main/branches/2.1.2/; revision=7939
* Make portdbapi.getfetchlist() bail out if the EAPIZac Medico2007-10-051-1/+8
| | | | | | | | is unsupported. This makes it impossible for an unsupported EAPI to result in invalid Manifest generation. (trunk r7916) svn path=/main/branches/2.1.2/; revision=7938
* Add EAPI masking support for binary packages. (trunk r7913)Zac Medico2007-10-051-1/+1
| | | | svn path=/main/branches/2.1.2/; revision=7935
* Fix UnsupportedAPIException.__str__() to strip the leading negativeZac Medico2007-10-051-1/+5
| | | | | | sign (-) from the EAPI, to prevent confusion. (trunk r7912) svn path=/main/branches/2.1.2/; revision=7934
* When the metadata cache contains a negative EAPI, it meansZac Medico2007-10-051-1/+6
| | | | | | | | | | | | 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. (trunk r7910 and r7919) svn path=/main/branches/2.1.2/; revision=7933
* Bump EAPI from 0 to 1 and fix eapi_is_supported() so thatZac Medico2007-10-052-2/+8
| | | | | | it works properly with both 0 and 1. (trunk r7909) svn path=/main/branches/2.1.2/; revision=7932
* Reimplement portdbapi.visible() so that is works withoutZac Medico2007-10-051-44/+50
| | | | | | | | | | | | | | 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. (trunk r7892) svn path=/main/branches/2.1.2/; revision=7925
* Document interaction between config.setinst() andZac Medico2007-10-051-0/+7
| | | | | | old-style virtuals preferences. (trunk r7891) svn path=/main/branches/2.1.2/; revision=7924
* Bug #194081 - Add EBUSY to the list of ignored errnos for unlinkZac Medico2007-09-281-4/+8
| | | | | | and rmdir calls during unmerge. (trunk r7869) svn path=/main/branches/2.1.2/; revision=7870
* Move prelink tempfile cleanup to the finally block andZac Medico2007-09-271-6/+2
| | | | | | remove unused locking code. (trunk r7864) svn path=/main/branches/2.1.2/; revision=7865
* Avoid useless and ugly atexit tracebacks that are triggered whenZac Medico2007-09-271-0/+3
| | | | | | portage exits during the portdbapi constructor. (trunk r6620) svn path=/main/branches/2.1.2/; revision=7863
* Simplify update_eclasses() a little. (trunk r7861)Zac Medico2007-09-271-8/+5
| | | | svn path=/main/branches/2.1.2/; revision=7862
* Ignore ENOTDIR from unmerge unlink calls. (trunk r7856)Zac Medico2007-09-271-1/+1
| | | | svn path=/main/branches/2.1.2/; revision=7857
* 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 approach is cleaner than triggering the exception and being forced to handle it somehow. (trunk r7835) svn path=/main/branches/2.1.2/; revision=7837
* 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. (trunk r7834) svn path=/main/branches/2.1.2/; revision=7836
* 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. (trunk r7808) svn path=/main/branches/2.1.2/; revision=7833
* Bugs #168772 and #193695 - During unmerge, only ignore specificZac Medico2007-09-261-19/+64
| | | | | | | | | | | | | | | | | exceptions raised from unlink() and rmdir() calls. Bug #193695 - Add support for FreeBSD chflags during unmerge. This code is adapted from the code that already exists in movefile() for the merge phase. In movefile() FreeBSD chflags handling, use chflags instead of lchflags when temporarily adjusting the flags on the parent directory since we want to follow any symlinks to the real parent directory. (trunk r7803:7807) svn path=/main/branches/2.1.2/; revision=7832
* Bug #74615 - Quote all file paths inside dispatch-conf shellZac Medico2007-09-261-4/+4
| | | | | | commands. (trunk r7803) svn path=/main/branches/2.1.2/; revision=7831
* Bug #190179 - Use `prelink --verify filename` to write theZac Medico2007-09-261-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. (trunk r7801) svn path=/main/branches/2.1.2/; revision=7829
* Flush stderr and stdout if their file descriptors are in fd_pipesZac Medico2007-09-261-4/+13
| | | | | | at the beginning of spawn(). (trunk r7793:7796) svn path=/main/branches/2.1.2/; revision=7824
* Mask binary packages if their CHOST does not match the oneZac Medico2007-09-261-1/+1
| | | | | | defined in make.conf. (trunk r7792) svn path=/main/branches/2.1.2/; revision=7822
* Use ensure_dirs() and apply_permissions() to avoid redundantZac Medico2007-09-262-8/+5
| | | | | | | | chown/chmod calls. This helps avoid 'Permission denied' errors during elog_process() when the ebuild command is run by normal user (issue reported by graaff). (trunk r7789) svn path=/main/branches/2.1.2/; revision=7820
* Bug #192346 - The emerge --help shows a -i option thatZac Medico2007-09-261-1/+1
| | | | | | does not exist. (trunk r7779) svn path=/main/branches/2.1.2/; revision=7819
* Bug #192195 - In dir_get_list(), append a trailing / to the addressZac Medico2007-09-261-0/+4
| | | | | | | when necessary in order to avoid getting a 400 error from the http server. (trunk r7771) svn path=/main/branches/2.1.2/; revision=7811
* Catch errno.ENOTDIR instead of using os.path.isdir(). (trunk r7770)Zac Medico2007-09-261-2/+3
| | | | svn path=/main/branches/2.1.2/; revision=7810
* Bug #192298 - Handle PermissionDenied error inZac Medico2007-09-261-2/+15
| | | | | | cache.update_eclasses(). (trunk r7769) svn path=/main/branches/2.1.2/; revision=7809
* Bug #190268 - Avoid unwanted sandbox violations in src_test().Zac Medico2007-09-081-2/+1
| | | | | | | | - 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(). (trunk r7759) svn path=/main/branches/2.1.2/; revision=7760
* For bug #190268, filter SANDBOX_* from the calling environment so that theyZac Medico2007-09-071-1/+2
| | | | | | can't interfere with ebuild.sh. (trunk r7746) svn path=/main/branches/2.1.2/; revision=7747
* Reformat collision-protect output so that the list of file collisions isZac Medico2007-09-061-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. (trunk r7720) svn path=/main/branches/2.1.2/; revision=7744
* Bug #190406 - Filter the myheaders list so that it doesn't include binaryZac Medico2007-09-061-1/+18
| | | | | | blobs added to cvs with the -kb option. (trunk r7705) svn path=/main/branches/2.1.2/; revision=7736
* Bug #190214 - Make the rpm phase use /usr/src/rpm instead of /usr/src/redhat.Zac Medico2007-09-061-0/+3
| | | | | | | Bug #190144 - Use the realpath of DISTDIR so that things like subversion.eclass are compatible with sandbox. (trunk r7700) svn path=/main/branches/2.1.2/; revision=7732
* Don't cache results from match_from_list() since *dbapi.match() caches do ↵Zac Medico2007-09-061-10/+1
| | | | | | the job. (trunk r7694) svn path=/main/branches/2.1.2/; revision=7730
* Add * and ~* to the list of valid values for ACCEPT_KEYWORDS. (trunk r7688)Zac Medico2007-08-231-1/+1
| | | | svn path=/main/branches/2.1.2/; revision=7689
* Bug #189791 - Define EBUILD_PHASE=unpack during the nofetch phase since ↵Zac Medico2007-08-231-0/+1
| | | | | | otherwise we get EBUILD_PHASE=merge which isn't in our list of valid EBUILD_PHASES recognized by elog. (trunk r7684) svn path=/main/branches/2.1.2/; revision=7685
* In config.regenerate(), skip loading /etc/profile.env if it's mtime hasn't ↵Zac Medico2007-08-231-6/+13
| | | | | | changed. (trunk r7682) svn path=/main/branches/2.1.2/; revision=7683
* Use INFORM to colorize the package name. (trunk r7674)Zac Medico2007-08-221-2/+3
| | | | svn path=/main/branches/2.1.2/; revision=7675
* Prevent output from being flushed to the console too frequently in ↵Zac Medico2007-08-221-10/+30
| | | | | | dir_get_metadata(). (trunk r7672) svn path=/main/branches/2.1.2/; revision=7673
* Fix update_dbentry() to process version components properly before passing ↵Zac Medico2007-08-221-2/+7
| | | | | | them into ververify(). (trunk r7665) svn path=/main/branches/2.1.2/; revision=7669
* Make best() return early when it's only given one package. (trunk r7664)Zac Medico2007-08-221-3/+3
| | | | svn path=/main/branches/2.1.2/; revision=7668
* Bug #188703 - Don't adjust permissions in ${T} unless userpriv is enabled. ↵Zac Medico2007-08-221-1/+2
| | | | | | (trunk r7661) svn path=/main/branches/2.1.2/; revision=7662
* Send cache hit/miss status updates to stdout instead of stderr and add some ↵Zac Medico2007-08-221-10/+22
| | | | | | more flush() calls. (trunk r7656) svn path=/main/branches/2.1.2/; revision=7658
* Show cache miss/hit counts all on one line, using \r to return to the ↵Zac Medico2007-08-221-3/+9
| | | | | | beginning of he line and rewrite it each time that a counter is updated. Thanks to Mike "Fuzzy" Partin <fuzzy@smoke.dope.org> for this patch (submitted on the gentoo-portage-dev mailing list). (trunk r7655) svn path=/main/branches/2.1.2/; revision=7657
* Fix ACCEPT_KEYWORDS validation so that ** is valid. (trunk r7647)Zac Medico2007-08-191-1/+3
| | | | svn path=/main/branches/2.1.2/; revision=7648
* For bug #188449, since python floats have limited range, we multiply both ↵Zac Medico2007-08-151-2/+11
| | | | | | floating point representations by a constant so that they are transformed into whole numbers. This allows the practically infinite range of a python int to be exploited. The multiplication is done by padding both literal strings with zeros as necessary to ensure equal length. (trunk r7606) svn path=/main/branches/2.1.2/; revision=7607
* For bug #188559, invalidate dblink._contents_inodes as necessary to prevent ↵Zac Medico2007-08-121-0/+6
| | | | | | FEATURES=unmerge-orphans from unmerging anything that belongs to the package that has just been merged. (trunk r7591) svn path=/main/branches/2.1.2/; revision=7592
* Optimize config.setcpv() so that it doesn't call regenerate() unnecessarily ↵Zac Medico2007-08-111-1/+12
| | | | | | when there are no USE wildcards to expand. (trunk r7589) svn path=/main/branches/2.1.2/; revision=7590
* Update emerge --help and --info docs. Thanks to Arfrever Frehtes Taifersar ↵Zac Medico2007-08-061-1/+1
| | | | | | Arahesis in bug #137483. (trunk r7583) svn path=/main/branches/2.1.2/; revision=7584
* Remove the depend phase from the doebuild actionmap since it's never used. ↵Zac Medico2007-08-041-2/+0
| | | | | | (trunk r7555) svn path=/main/branches/2.1.2/; revision=7556
* Make droppriv for the depend phase conditional on userpriv in FEATURES. ↵Zac Medico2007-08-031-2/+4
| | | | | | (trunk r7553) svn path=/main/branches/2.1.2/; revision=7554
* In portage.spawn() logging, put the read end of the pipe in O_NONBLOCK mode ↵Zac Medico2007-08-031-15/+11
| | | | | | just once at the beginning. This avoids unnecessary fcntl calls and removes one more opportunity to trigger EAGAIN errors on FreeBSD. (trunk r7548) svn path=/main/branches/2.1.2/; revision=7549