summaryrefslogtreecommitdiffstats
path: root/pym
Commit message (Collapse)AuthorAgeFilesLines
* Fix config.setinst() to return early when the givenZac Medico2007-10-231-0/+3
| | | | | | package already provides the virtual. (trunk r8240) svn path=/main/branches/2.1.2/; revision=8241
* Remove a redundant self.treeVirtuals deepcopy from theZac Medico2007-10-231-2/+1
| | | | | | config constructor. (trunk r8238) svn path=/main/branches/2.1.2/; revision=8239
* Bug #196435 - Add some more references to quickpkg(1) sinceZac Medico2007-10-221-5/+15
| | | | | | sometimes people don't realize that it exists. (trunk r8185) svn path=/main/branches/2.1.2/; revision=8230
* In depgraph.create(), don't ignore direct circular dependenciesZac Medico2007-10-221-4/+12
| | | | | | | | | | | | | | | anymore since altlist() is able to handle it properly in cases where the dependency is satisfied. If the dep is unsatisfied then it can not be ignored. (trunk r8225) Allow the depgraph to add old-style virtual providers but prefer any pre-existing providers over new ones that are added. This prevents things like ghc-6.4.2 from selecting itself to satisfy it's own virtual/ghc dependency (creating a circular dependency) in cases where it should select the default ghc-bin provider. (trunk r8185:8187) svn path=/main/branches/2.1.2/; revision=8229
* Bug #196680 - Handle a CacheError inside mirror_cache() whenZac Medico2007-10-221-0/+4
| | | | | | reading from the source cache. (trunk r8222) svn path=/main/branches/2.1.2/; revision=8223
* Handle EnvironmentError instead of OSError since open()Zac Medico2007-10-181-4/+8
| | | | | | | | | | actually raises IOError. Also, treat a missing SLOT file as SLOT="" since it is currently possible to install an ebuild with an undefined SLOT even though repoman generates a SLOT.missing error with such an ebuild. (trunk r8174) svn path=/main/branches/2.1.2/; revision=8175
* Bug #195375 - Make dblink.treewalk() read inforoot/SLOT sinceZac Medico2007-10-181-1/+17
| | | | | | | | it differs from the expected SLOT value when when USE=multislot is enabled. A warning message will be shown if the slot differs and --quiet mode is not enabled. (trunk r8172) svn path=/main/branches/2.1.2/; revision=8173
* Adjust quote usage in collision-protect eerrorZac Medico2007-10-181-3/+3
| | | | | | output. (trunk r8170) svn path=/main/branches/2.1.2/; revision=8171
* Fix collision-protect so that it properly cancels theZac Medico2007-10-181-22/+26
| | | | | | preinst phase like it used to. (trunk r8168) svn path=/main/branches/2.1.2/; revision=8169
* Fix the normalize_needed regex to properly match //Zac Medico2007-10-171-1/+1
| | | | | | | anywhere in the path. Also add support for detection of . or .. where appropriate. (trunk r8166) svn path=/main/branches/2.1.2/; revision=8167
* Bug #196043 - Unify the ouput handling for file collisionsZac Medico2007-10-171-52/+54
| | | | | | | so that similar eerror messages are generated whether or not collision-protect is enabled. (trunk r8163) svn path=/main/branches/2.1.2/; revision=8165
* Always unlink the .installed flag prior to merge sinceZac Medico2007-10-171-1/+1
| | | | | | portage.movefile() never leaves intact. (trunk r6986) svn path=/main/branches/2.1.2/; revision=8164
* Add missing "to" to fix grammar. (trunk r8161)Zac Medico2007-10-171-1/+2
| | | | svn path=/main/branches/2.1.2/; revision=8162
* Bug #196043 - Update the file collision ewarn noticeZac Medico2007-10-171-9/+15
| | | | | | | | | | to try and clarify the cases when a bug should NOT be filed. Also, recommend the new `portageq owners / <filename>` command since it works properly even when paths are ambiguous due to symlinked directories. (trunk r8155) svn path=/main/branches/2.1.2/; revision=8160
* Optimize dblink.isowner() to use fewer stat calls byZac Medico2007-10-171-15/+38
| | | | | | | | | | only collecting stat results for parent directories. This provides equivalent accuracy to the previous approach but will perform much better when used to scan all installed packages for owners in the event of a file collision. (trunk r8153) svn path=/main/branches/2.1.2/; revision=8158
* Fix a typo.Zac Medico2007-10-171-1/+1
| | | | svn path=/main/branches/2.1.2/; revision=8157
* In dblink.getcontents(), use a regular expression to detectZac Medico2007-10-171-3/+14
| | | | | | | | | | when path normalization is required. Also, only join with ${ROOT} when necessary. This allows unnecessary normpath and join calls to be optimized away in the general case, reducing the cpu time for `equery belongs <filename>` by about 50%. (trunk r8150:8152) svn path=/main/branches/2.1.2/; revision=8156
* Remove the checks for files in symlinked directoriesZac Medico2007-10-151-12/+3
| | | | | | | | | from the collision protect code since it hasn't been needed ever since the followSymlinks parameter was disabled for portage.listdir() calls in order to prevent infinite recursion loops. (trunk r8120:8124) svn path=/main/branches/2.1.2/; revision=8131
* In some cases, openpty can be slow when it fails. Therefore,Zac Medico2007-10-131-7/+16
| | | | | | stop trying to use it after the first failure. (trunk r8119) svn path=/main/branches/2.1.2/; revision=8120
* In the file collision eerror output, don't colorize theZac Medico2007-10-131-3/+2
| | | | | | | file paths since the escape codes look ugly in the log. (trunk r8113:8115) svn path=/main/branches/2.1.2/; revision=8116
* Handle the PortageException that can be raised fromZac Medico2007-10-131-1/+6
| | | | | | portage.mail.send_mail(). (trunk r8102) svn path=/main/branches/2.1.2/; revision=8103
* Make the file collision eerror message less verboseZac Medico2007-10-131-9/+11
| | | | | | when in --quiet mode. (trunk r8100) svn path=/main/branches/2.1.2/; revision=8101
* In dblink.treewalk(), use os.walk() instead of portage.listdir()Zac Medico2007-10-131-13/+21
| | | | | | | | | | | | | in order to avoid cacheddir() bloat when listing the files to be merged from ${D}. Remove a chdir() call that's no longer needed for the collision-protect symlink code. (trunk r8095:8098) svn path=/main/branches/2.1.2/; revision=8099
* Remove a redundant call to elog_process(). (trunk r8091)Zac Medico2007-10-121-1/+0
| | | | svn path=/main/branches/2.1.2/; revision=8092
* s:this package wants:this package will: (trunk r8089)Zac Medico2007-10-121-1/+1
| | | | svn path=/main/branches/2.1.2/; revision=8090
* Bug #195527 - Unconditionally detect file collisions and logZac Medico2007-10-121-4/+37
| | | | | | | | | them as eerror messages via elog. This will allow us to collect more file collision data but it won't be quite as annoying as enabling collision-protect by default would be. (trunk r8085:8087) svn path=/main/branches/2.1.2/; revision=8088
* Make portdbapi.aux_get() cache more often. (trunk r8011)Zac Medico2007-10-121-0/+2
| | | | svn path=/main/branches/2.1.2/; revision=8069
* Properly exclude old-style virtuals from theZac Medico2007-10-121-2/+4
| | | | | | portdbapi.cp_list() cache. (trunk r8010) svn path=/main/branches/2.1.2/; revision=8068
* Remove a redundant os.access() call in portdbapi.aux_get()Zac Medico2007-10-121-3/+3
| | | | | | and handle the potential OSError instead. (trunk r8009) svn path=/main/branches/2.1.2/; revision=8067
* Optimize away a match_from_list() call insideZac Medico2007-10-121-4/+15
| | | | | | | | portdbapi.xmatch("match-all") when given atom has no operator or version. Also, make cp_list() use the xmatch("match-all") cache when possible. (trunk r8008) svn path=/main/branches/2.1.2/; revision=8066
* Handle Exceptions in mod_mail_summary.finalize() andZac Medico2007-10-122-1/+10
| | | | | | | check if the server actually supports TLS, bug #183808 (trunk r7984 and r8058) svn path=/main/branches/2.1.2/; revision=8059
* Strip the - prefix from EAPI in getmaskingstatus()Zac Medico2007-10-051-0/+2
| | | | | | if necessary. (trunk r7975) svn path=/main/branches/2.1.2/; revision=7976
* 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