summaryrefslogtreecommitdiffstats
path: root/pym
Commit message (Collapse)AuthorAgeFilesLines
* * Move filtering of a bunch of portage config variables fromZac Medico2007-11-261-1/+13
| | | | | | | | save_ebuild_env() to config.environ(). * Add EMERGE_FROM to the READONLY_PORTAGE_VARS list. (trunk r8670) svn path=/main/branches/2.1.2/; revision=8671
* Bug #124041 - Make emerge show an informative warning message when oneZac Medico2007-11-262-2/+17
| | | | | | | | or more eclasses override eclasses from PORTDIR. The warning can be permanently disabled by setting PORTAGE_ECLASS_WARNING_ENABLE="0" in /etc/make.conf. (trunk r8668) svn path=/main/branches/2.1.2/; revision=8669
* Implement loading of environment.bz2 for the pkg_info() phase.Zac Medico2007-11-251-2/+27
| | | | | | | | | | | Since a temporary directory is required for processing of ${T}/environment, and we want a user who's not in the portage group to be able to run the pkg_info() phase, PORTAGE_TMPDIR is temporarily overridden with a directory created by mkdtemp. To make this work, doebuild() creates the tempdir and cleans it up in a finally block. (trunk r8649) svn path=/main/branches/2.1.2/; revision=8650
* When binarytree.populate() finds missing metadata, specify which keysZac Medico2007-11-241-4/+16
| | | | | | | are missing so that the user has a clue about what is wrong. (trunk r8638). svn path=/main/branches/2.1.2/; revision=8639
* Sort hashes for predictable output from Manifest._createManifestEntries().Zac Medico2007-11-231-0/+1
| | | | | | (trunk r8615) svn path=/main/branches/2.1.2/; revision=8616
* When filtering the backupenv in create_trees(), be moreZac Medico2007-11-231-1/+15
| | | | | | | selective and ensure that special variables that come from the config constructor are preserved. (trunk r8609) svn path=/main/branches/2.1.2/; revision=8610
* Generate an eerror elog message when an ebuild prerm orZac Medico2007-11-211-0/+18
| | | | | | postrm phase fails. (trunk r8577) svn path=/main/branches/2.1.2/; revision=8580
* Fix an AttributeError for config.backupenv.Zac Medico2007-11-211-5/+5
| | | | svn path=/main/branches/2.1.2/; revision=8572
* When ROOT != "/" we only want overrides from the callingZac Medico2007-11-211-0/+7
| | | | | | | | | | environment to apply to the config that's associated with ROOT != "/", so we wipe out the "backupenv" for the config that is associated with ROOT == "/" and regenerate it's incrementals. Thanks to solar for the suggestion. (trunk r8539) svn path=/main/branches/2.1.2/; revision=8571
* Disable logging and ${T}/environment saving during theZac Medico2007-11-211-1/+1
| | | | | | pkg_info() phase. (trunk r8526) svn path=/main/branches/2.1.2/; revision=8568
* Fix PROFILE_ONLY_VARIABLES handling in the config constructorZac Medico2007-11-211-5/+4
| | | | | | | so that variables are appropriately filtered from "backupenv", since otherwise they can leak in from there. (trunk r8524) svn path=/main/branches/2.1.2/; revision=8567
* Bug #198398 - Enable Manifest generation when there are no hashZac Medico2007-11-212-5/+17
| | | | | | | | | | functions available for types such as RMD160. Now it's possible to generate a Manifest when python-2.5 is built without ssl support. MANIFEST1_REQUIRED_HASH and MANIFEST2_REQUIRED_HASH are the only two functions that are strictly required now (MD5 and SHA1). (trunk r8521) svn path=/main/branches/2.1.2/; revision=8566
* Clean up vardbapi.counter_tick_core() and replace shell codeZac Medico2007-11-211-50/+30
| | | | | | with pure python. svn path=/main/branches/2.1.2/; revision=8565
* Set IMAGE for minimal backward compatibility withZac Medico2007-11-211-2/+0
| | | | | | | overlays or user's bashrc, but don't export it. (trunk r8511:8513) svn path=/main/branches/2.1.2/; revision=8564
* Bug #199311 - Make dblink.getcontents() show the path of theZac Medico2007-11-211-11/+10
| | | | | | | CONTENTS file when any kind of parse error occurs. (trunk r8511) svn path=/main/branches/2.1.2/; revision=8563
* Make dir_get_metadata() return early if the current user doesZac Medico2007-11-201-0/+7
| | | | | | | not have write access to /var/cache/edb. Thanks to Cardoe for reporting. (trunk r8502) svn path=/main/branches/2.1.2/; revision=8561
* 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