summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Now that save_ebuild_env() filters variables that could causeZac Medico2007-11-201-9/+2
| | | | | | | | interference, preprocess_ebuild_env() can rely on it to clean up the environment enough so that anything left can be allowed to override variables or functions from the current environment. svn path=/main/trunk/; revision=8537
* Add some more variables to filter in filter_readonly_variables()Zac Medico2007-11-201-7/+10
| | | | | | and save_ebuild_env(). svn path=/main/trunk/; revision=8536
* Move LD_PRELOAD and FAKEROOTKEY filtering from filter_readonly_variables()Zac Medico2007-11-201-3/+3
| | | | | | to save_ebuild_env(). svn path=/main/trunk/; revision=8535
* Make AA, PF, and WORKDIR readonly.Zac Medico2007-11-191-1/+2
| | | | svn path=/main/trunk/; revision=8534
* Make save_ebuild_env() filter out lots of variables thatZac Medico2007-11-191-0/+32
| | | | | | don't need to be saved. svn path=/main/trunk/; revision=8533
* Make preprocess_ebuild_env() explicitly filter out FEATURESZac Medico2007-11-191-0/+1
| | | | | | | since the value for that variable should never come from a previously saved environment. svn path=/main/trunk/; revision=8532
* Implement loading of environment.bz2 from binary and installedZac Medico2007-11-191-14/+59
| | | | | | | | | | | | packages. For binary packages, it's loaded prior to pkg_setup(). For installed packages, it's loaded prior to pkg_prerm(). For simplicity, the current implementation will cause the current environment to override *everything* in the environment that is being processed. In the future, it should be more selective and only override the parts that are strictly necessary. svn path=/main/trunk/; revision=8531
* In bash-3.2_p20+ an attempt to assign BASH_*, FUNCNAME, GROUPS or anyZac Medico2007-11-191-27/+43
| | | | | | | | readonly variable cause the shell to exit while executing the "source" builtin command. To avoid this problem, a new save_ebuild_env() function filters those variables out and discards them. See bug #190128. svn path=/main/trunk/; revision=8528
* When creating environment.bz2 at the end of dyn_compile(),Zac Medico2007-11-191-2/+25
| | | | | | | | reduce bloat by filtering out functions that are defined internally by portage. This reduces the size of the resulting environment.bz2 file by approximately 10 KB. svn path=/main/trunk/; revision=8527
* Disable logging and ${T}/environment saving during theZac Medico2007-11-192-3/+2
| | | | | | pkg_info() phase. svn path=/main/trunk/; revision=8526
* Use the existing RootConfig class to serve as a replacement forZac Medico2007-11-191-64/+58
| | | | | | | | | the EmergeConfig class. They both served roughly the same purpose and it was messy the way that EmergeConfig inherited from the portage.config class. It's better to avoid inheritance here, expecially since it doesn't provide anything really useful. svn path=/main/trunk/; revision=8525
* Fix PROFILE_ONLY_VARIABLES handling in the config constructorZac Medico2007-11-191-6/+4
| | | | | | | so that variables are appropriately filtered from "backupenv", since otherwise they can leak in from there. svn path=/main/trunk/; revision=8524
* Bug #198398 - Enable Manifest generation when there are no hashZac Medico2007-11-182-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). svn path=/main/trunk/; revision=8521
* Fix NEEDED logic in vardbapi.aux_get() so that emptyZac Medico2007-11-181-1/+1
| | | | | | NEEDED doesn't trigger unnecessary cache pulls. svn path=/main/trunk/; revision=8520
* Fix --usepkgonly code in depgraph.select_files() so that itZac Medico2007-11-171-0/+2
| | | | | | only operates on the Package type that it expects. svn path=/main/trunk/; revision=8519
* Clean up vardbapi.counter_tick_core() and replace shell codeZac Medico2007-11-171-47/+27
| | | | | | with pure python. svn path=/main/trunk/; revision=8518
* Speed up LibraryPackageMap.update() by pulling NEEDED from theZac Medico2007-11-161-2/+10
| | | | | | | | | | vardbapi.aux_get() cache. This greatly reduces the amount of needless IO that has been happening just prior to the postinst phase in dblink.treewalk(). We may want to consider having LibraryPackageMap work directly from the vardbapi instead of creating the intermediate /var/cache/edb/library_consumers file. svn path=/main/trunk/; revision=8516
* Set IMAGE for minimal backward compatibility withZac Medico2007-11-161-0/+3
| | | | | | overlays or user's bashrc, but don't export it. svn path=/main/trunk/; revision=8513
* Don't export ${IMAGE} to the ebuild environment anymore sinceZac Medico2007-11-161-2/+0
| | | | | | everything uses ${D} now (including the entire tree). svn path=/main/trunk/; revision=8512
* Bug #199311 - Make dblink.getcontents() show the path of theZac Medico2007-11-161-11/+10
| | | | | | CONTENTS file when any kind of parse error occurs. svn path=/main/trunk/; revision=8511
* Fix quoting for `source ${EBUILD}`.Zac Medico2007-11-151-1/+1
| | | | svn path=/main/trunk/; revision=8503
* Make dir_get_metadata() return early if the current user doesZac Medico2007-11-151-0/+7
| | | | | | | not have write access to /var/cache/edb. Thanks to Cardoe for reporting. svn path=/main/trunk/; revision=8502
* * Replace references to deprecated ${IMAGE} with equivalent ${D}.Zac Medico2007-11-142-29/+26
| | | | | | * Remove redundant trailing slashes and fix quoting. svn path=/main/trunk/; revision=8501
* In the slot collision display, show a maximum of 3 parentsZac Medico2007-11-141-0/+22
| | | | | | for each package in order to avoid flooding the display. svn path=/main/trunk/; revision=8500
* Make 'full' the default mode, since 'scan' can be annoying since itZac Medico2007-11-132-3/+3
| | | | | | ommits relevant info. svn path=/main/trunk/; revision=8499
* Make the slot collision display show all collisions insteadZac Medico2007-11-131-21/+27
| | | | | | of just the first one. svn path=/main/trunk/; revision=8498
* Make depgraph._complete_graph() properly specify SetArg instancesZac Medico2007-11-131-13/+24
| | | | | | | as parents of each Dependency, similar to the want that select_files() does. svn path=/main/trunk/; revision=8497
* Make depgraph._add_pkg() match the package with all possibleZac Medico2007-11-131-22/+26
| | | | | | args and add them to the digraph. svn path=/main/trunk/; revision=8496
* Remove the depgraph.pkg_node_map attribute and use otherZac Medico2007-11-121-45/+36
| | | | | | means to accomplish the same thing. svn path=/main/trunk/; revision=8495
* Add DependencyArg instances as parents of packages in theZac Medico2007-11-121-8/+21
| | | | | | | digraph since these relationships should be useful during backtracking. svn path=/main/trunk/; revision=8494
* * Remove all references to the obsolete Package.digraph_node attribute.Zac Medico2007-11-121-63/+51
| | | | | | | | * Reimplement Package comparison methods since the previous way didn't seem to function properly for dict keys. * Clean up depgraph._add_pkg() to use the Package object attributes. svn path=/main/trunk/; revision=8493
* Make the Package class emulate the interface of it's ownZac Medico2007-11-122-19/+21
| | | | | | | digraph_node tuple so that the Package instance itself can be added directly to the digraph. svn path=/main/trunk/; revision=8492
* Bug #197797 - Set umask to 022 so that created files (such as theZac Medico2007-11-121-0/+4
| | | | | | world file) have sane permissions. svn path=/main/trunk/; revision=8491
* Make diefunc() clean up QA_INTERCEPTORS in case it isZac Medico2007-11-111-1/+6
| | | | | | called from inherit() since sed called below. svn path=/main/trunk/; revision=8490
* * Provide reasonable default values for DependencyZac Medico2007-11-111-38/+35
| | | | | | | | | priority and depth attributes. * Remove depgraph.create() since it's no longer needed. * Remove depgraph._get_parent_sets() and instead get the information from DependencyArg attributes. svn path=/main/trunk/; revision=8489
* Fix depgraph._get_arg_for_pkg() so that it compares packageZac Medico2007-11-111-1/+5
| | | | | | types to help ensure a proper match. svn path=/main/trunk/; revision=8488
* Implement mapping of packages to instances of DependencyArgZac Medico2007-11-112-4/+50
| | | | | | | | | in depgraph._get_arg_for_pkg(). Among other things, this provides a way to know whether or not a specific package has been specified as an argument, which determines whether or not it can be removed from the graph during backtracking. svn path=/main/trunk/; revision=8487
* Wrap accesses to depgraph._set_atoms.findAtomForPackage() inZac Medico2007-11-111-7/+26
| | | | | | a new depgraph._get_arg_for_pkg() method. svn path=/main/trunk/; revision=8486
* Make the EbuildQuote.missing_quotes regex accept singleZac Medico2007-11-101-2/+2
| | | | | | | | quotes where it accepts double quotes in order to eliminate some false positives. Thanks to Krzysiek Pawlik <nelchael@gentoo.org> for reporting. svn path=/main/trunk/; revision=8485
* Fix WorldSet.cleanPackage() so that it properly preservesZac Medico2007-11-101-0/+1
| | | | | | nonatoms (sets) in the world file. svn path=/main/trunk/; revision=8484
* Convert all the checks in repoman.checks to use a new LineCheckZac Medico2007-11-102-209/+115
| | | | | | | | | | | | | | | | | interface that takes a single line as an argument. This has at least a few of benefits: * Eliminates lots of redundant code * Error messages are ordered by line number across all checks The performance is slightly worse due to the increased number of method calls, but it's not really noticeable in comparison to the time consumed by dependency checks. Thanks to Petteri Räty <betelgeuse@gentoo.org> for the initial patch which I only made a few minor modifications to. svn path=/main/trunk/; revision=8483
* Clean up expansion of set arguments in depgraph.select_files().Zac Medico2007-11-091-11/+13
| | | | svn path=/main/trunk/; revision=8482
* fix typo and missing classmethod declarationMarius Mauch2007-11-091-1/+2
| | | | svn path=/main/trunk/; revision=8481
* if multiple glsas result in the same cat/pkg:slot being affected only use ↵Marius Mauch2007-11-091-1/+17
| | | | | | the highest resulting atom svn path=/main/trunk/; revision=8480
* move checkfile parsing into its own functionMarius Mauch2007-11-093-14/+18
| | | | svn path=/main/trunk/; revision=8479
* Move glsa-check from gentoolkit into portage so the gentoolkit version can ↵Marius Mauch2007-11-092-2/+341
| | | | | | be removed after 2.2 is released svn path=/main/trunk/; revision=8478
* revert getMergeList to return CPVs again instead of atomsMarius Mauch2007-11-092-2/+2
| | | | svn path=/main/trunk/; revision=8477
* Fix incorrect type in depgraph._missing_args.Zac Medico2007-11-091-1/+1
| | | | svn path=/main/trunk/; revision=8476
* Create classes to encapsulate eache of the depgraph argumentZac Medico2007-11-091-24/+61
| | | | | | types: atoms, packages and sets. svn path=/main/trunk/; revision=8475
* Remove the workaround for \n -> \r\n transformations inZac Medico2007-11-091-4/+5
| | | | | | | SpawnTestCase.testLogfile() since the problem is solved by the patch from bug #198491. svn path=/main/trunk/; revision=8474