summaryrefslogtreecommitdiffstats
path: root/pym
Commit message (Collapse)AuthorAgeFilesLines
* Bug #198491 - Disable termios.OPOST post-processing of output onZac Medico2007-11-201-0/+7
| | | | | | | | the slave pty file descriptor since otherwise weird things like \n -> \r\n transformations may occur. Thanks to Ulrich Mueller <ulm@gentoo.org> for this patch. (trunk r8473) svn path=/main/branches/2.1.2/; revision=8550
* make.globals should not be relative to config_rootZac Medico2007-11-201-1/+3
| | | | | | because it only contains constants. (trunk r8471) svn path=/main/branches/2.1.2/; revision=8549
* Tweak EOutput.term_columns calculation for TERM="dumb" soZac Medico2007-11-201-1/+1
| | | | | | | | that it behaves like TERM="cons25" currently does. Thanks to Ulrich Mueller <ulm@gentoo.org> for the patch. (trunk r8468) svn path=/main/branches/2.1.2/; revision=8548
* Don't do:Zac Medico2007-11-201-2/+3
| | | | | | | Calculating dependencies |Fetching binary packages info... but instead put "Fetching ..." on it's own line. (trunk r8466) svn path=/main/branches/2.1.2/; revision=8547
* It is not cool and/or helpfull to see an HTML dump of someZac Medico2007-11-201-3/+0
| | | | | | | page in case it is not what is expected (like a 404). (trunk r8462) svn path=/main/branches/2.1.2/; revision=8545
* For unsatisfied dependencies, shorten the per-package EAPI maskZac Medico2007-11-201-1/+1
| | | | | | | output and show an informative message whenever an EAPI mask is encountered. (trunk r8457) svn path=/main/branches/2.1.2/; revision=8544
* Synchronize vardbapi._aux_cache_keys with trunk. It's importantZac Medico2007-11-181-3/+6
| | | | | | | | | at least to include RESTRICT since the depgraph uses that one and therefore it should be cached to improve performance. The others aren't strictly necessary at this time, but it's good to be in sync with trunk. svn path=/main/branches/2.1.2/; revision=8522
* Make exception strings more informative. (trunk r8426)Zac Medico2007-11-041-2/+5
| | | | svn path=/main/branches/2.1.2/; revision=8427
* Fix indentation typo.Zac Medico2007-11-041-4/+3
| | | | svn path=/main/branches/2.1.2/; revision=8425
* Make Manifest.create() do some basic validation of ebuildZac Medico2007-11-041-1/+11
| | | | | | file names like portdbapi.cp_list() would do. (trunk r8423) svn path=/main/branches/2.1.2/; revision=8424
* In portdbapi.cp_list(), validate the ebuild name to ensureZac Medico2007-11-041-0/+4
| | | | | | that it matches the name of the package. (trunk r8421) svn path=/main/branches/2.1.2/; revision=8422
* Clean up ACCEPT_KEYWORDS incremental stacking logic andZac Medico2007-11-041-29/+31
| | | | | | fix some minor inconsistencies. (trunk r8418) svn path=/main/branches/2.1.2/; revision=8419
* In fetch(), replace checksum_failure_counts dict with singleZac Medico2007-11-041-8/+6
| | | | | | int counter. (trunk r8416) svn path=/main/branches/2.1.2/; revision=8417
* Make fetch() behave like the ebuild has RESTRICT="primaryuri"Zac Medico2007-11-041-1/+30
| | | | | | | | after 2 checksum failures for a fetched file. This should increase the probability of fetching the correct file before the maximum number of tries is reached. (trunk r8412) svn path=/main/branches/2.1.2/; revision=8413
* For sanity, pass an actual list of keys into aux_get() insteadZac Medico2007-11-041-3/+4
| | | | | | | of iterating over a set that happens to be mutable (though it remains constant in practice). (trunk r8410) svn path=/main/branches/2.1.2/; revision=8411
* Bug #197797 - Do not actively clear o+rx permission bitsZac Medico2007-11-031-4/+2
| | | | | | | | | | | | | | | on the /var/lib/portage directory. Only clear the o+w bits. This allows users who aren't in the portage group to have read access to the world file by default, but administrators can explicitly chmod o-rx that directory if necessary, and portage will leave those bits alone. This makes the permission settings in dblink.treewalk() consistent with those that are already defined in config._init_dirs(). (trunk r8408) svn path=/main/branches/2.1.2/; revision=8409
* Bug #197965 - When fetch() encounters a checksum failure,Zac Medico2007-11-031-12/+58
| | | | | | | | | | | | | look for an identical file from a previous checksum failure in order to avoid consuming unnecessary disk space with duplicate files. (trunk r8401) Bug #197965 - Make fetch() bail out after 5 checksum failures for a particular file since downloading the same file repeatedly from every single available mirror is a waste of bandwidth and time. (trunk r8403) svn path=/main/branches/2.1.2/; revision=8404
* Fix update_config_files() so that it uses update_dbentry()Zac Medico2007-11-031-30/+30
| | | | | | | to handle update commands since that already supports slotmove commands for SLOT atoms. (trunk r8397) svn path=/main/branches/2.1.2/; revision=8398
* Revert to backward compatible masking behavior with respectZac Medico2007-11-031-16/+9
| | | | | | | | | to -* in KEYWORDS and package.keywords since -* behavior changes are not essential at this time and a change in this long standing behavior has potential to confuse lots of users. svn path=/main/branches/2.1.2/; revision=8395
* In portage.fetch(), condense digest check output to a singleZac Medico2007-11-031-2/+4
| | | | | | line for all digests. (trunk r8385) svn path=/main/branches/2.1.2/; revision=8394
* Remove redundant code from previous commit. (trunk r8392)Zac Medico2007-11-031-2/+0
| | | | svn path=/main/branches/2.1.2/; revision=8393
* Bug #197932 - Make dbapi._cpv_sort_ascending()Zac Medico2007-11-031-9/+10
| | | | | | | preserve explicit -r0 for consistency in findname and aux_get calls. (trunk r8390) svn path=/main/branches/2.1.2/; revision=8391
* Synchronize getmaskingreason() and getmaskingstatus() withZac Medico2007-11-031-40/+42
| | | | | | | trunk so that behavior is the same for things like SLOT deps and -* in package.keywords. svn path=/main/branches/2.1.2/; revision=8386
* Make portdbapi.gvisible() use portdbapi._aux_cache_keysZac Medico2007-11-021-1/+1
| | | | | | for metadata pulls. (trunk r8381) svn path=/main/branches/2.1.2/; revision=8382
* Return early from config._getMaskAtom() as soon as a matchingZac Medico2007-11-021-5/+1
| | | | | | unmask atom is found. (trunk r8379) svn path=/main/branches/2.1.2/; revision=8380
* In portage.fetch(), condense digest check output to a singleZac Medico2007-11-021-2/+5
| | | | | | line for all digests. (trunk r8316) svn path=/main/branches/2.1.2/; revision=8370
* Optimize repoman visibility checks to access as littleZac Medico2007-11-021-7/+64
| | | | | | | | | | metadata as possible. (improves performance especially in cases where metadata needs to be generated). This works by starting at the lowest version since that's most likely to have keywords and it returns as soon as the first visible package is found. (trunk r8309) svn path=/main/branches/2.1.2/; revision=8369
* Sort all dbapi.cp_list() results in ascending order andZac Medico2007-11-021-15/+59
| | | | | | | | cache the results when possible. The order is preserved in dbapi.match() so those results are also sorted. (trunk r8329) svn path=/main/branches/2.1.2/; revision=8367
* Factor the KEYWORDS masking logic out of portdbapi.visible()Zac Medico2007-11-021-102/+156
| | | | | | | | | | | | | and move it to config._getMissingEeywords(). (trunk r7997) Factor package.mask and profile masking logic out of portdbapi.visible() and move it to config._getMaskAtom() and _getProfileMaskAtom(). (trunk r8001) These are prerequisites for important repoman optimizations that will be ported from trunk. svn path=/main/branches/2.1.2/; revision=8365
* Rewrite the dblink.getcontents() code to use str.split(" ")Zac Medico2007-11-021-23/+48
| | | | | | | | | | | for splitting CONTENTS lines so that even file paths that end with spaces can be handled. This patch makes the fix for bug #196836#c6 more complete. Some code for parsing old malformed symlink entries has been removed sinces it's probably not useful or worth maintaining anymore. (trunk r8337) svn path=/main/branches/2.1.2/; revision=8364
* If the title string is too big then xtermTitle() canZac Medico2007-11-021-0/+5
| | | | | | | misbehave by causing the terminal to echo some of the characters and generate a "beep" sound. (trunk r8289) svn path=/main/branches/2.1.2/; revision=8363
* protect variables specified in PROFILE_ONLY_VARIABLES fromZac Medico2007-11-022-2/+14
| | | | | | being set by the user (trunk r8251:8253, r8255, and r8259) svn path=/main/branches/2.1.2/; revision=8361
* Don't show the "checking files for package collisions" messagev2.1.3.16Zac Medico2007-10-231-2/+3
| | | | | | when --quiet is enabled. (trunk r8248) svn path=/main/branches/2.1.2/; revision=8249
* 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