summaryrefslogtreecommitdiffstats
path: root/pym/portage
Commit message (Collapse)AuthorAgeFilesLines
* Fix alignment.Zac Medico2008-07-281-1/+1
| | | | svn path=/main/trunk/; revision=11254
* Tweak the conditional USE deps examples.Zac Medico2008-07-281-4/+4
| | | | svn path=/main/trunk/; revision=11253
* Fix broken reference to "categories" in CategorySet.singleBuilder(). ThanksZac Medico2008-07-281-1/+1
| | | | | | to Thargor for reporting. svn path=/main/trunk/; revision=11250
* Bug #233103 - In portage.fetch(), pass all config variables instead of justZac Medico2008-07-281-1/+1
| | | | | | those returned by the environ() method which is filtered. svn path=/main/trunk/; revision=11245
* Even though the message is split on $'\n' in elog_base(), it's stillZac Medico2008-07-281-1/+1
| | | | | | | | not entirely safe to use it as a delimiter in the log file since there can still be escaped newlines that will be expanded due to the echo -e parameter. svn path=/main/trunk/; revision=11244
* Remove pointless generator expression.Zac Medico2008-07-281-1/+1
| | | | svn path=/main/trunk/; revision=11238
* Fix arg count when constructing a TypeError in the SlotDict constructor.Zac Medico2008-07-281-1/+1
| | | | svn path=/main/trunk/; revision=11234
* Add support for an new EAPI="2_pre0" value so that people who want to testZac Medico2008-07-281-1/+4
| | | | | | | | USE deps can set the EAPI to something other than 0 or 1. We can support as many different experimental EAPI values as we need, and drop support for them when the final EAPI 2 is defined. svn path=/main/trunk/; revision=11233
* Disable the multi-bracket USE deps syntax, so only the comma separated syntaxZac Medico2008-07-283-4/+6
| | | | | | is now valid. svn path=/main/trunk/; revision=11232
* Implement new conditional USE dep syntax:Zac Medico2008-07-282-25/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Conditional evaluation behavior: parent state conditional result x x? x -x x? x -x? -x -x? -x x x= x -x x= -x x x!= -x -x x!= x Conditional syntax examples: compact form equivalent expanded form foo[bar?] foo bar? ( foo[bar] ) foo[-bar?] foo !bar? ( foo[-bar] ) foo[bar=] foo bar? ( foo[bar] ) !bar? ( foo[-bar] ) foo[bar!=] foo bar? ( foo[-bar] ) !bar? ( foo[bar] ) svn path=/main/trunk/; revision=11231
* Create a SlotDict constructor which can take an optional positional arg thatZac Medico2008-07-281-0/+13
| | | | | | | | | is passed to the update() method (similar to the dict constructor), and also pass keyword arguments into the update() method if any are given. This makes it possible to use the constructor similarly to the way that the _emerge.SlotObject constructor is used. svn path=/main/trunk/; revision=11230
* * Add support in dep_getusedeps() and isvalidatom() for comma separated USEZac Medico2008-07-282-3/+33
| | | | | | | deps that only have one set of square brackets. * Add test cases for the new comma separated USE deps syntax. svn path=/main/trunk/; revision=11229
* Bug #233137 - Implement Atom.split().Zac Medico2008-07-281-1/+2
| | | | svn path=/main/trunk/; revision=11228
* Fix EbuildFetcher to pass all config variables to the fetcher so thingsZac Medico2008-07-271-0/+7
| | | | | | like http_proxy are included. svn path=/main/trunk/; revision=11223
* Make elog_base() just use \n as the delimiter in the file since it's safeZac Medico2008-07-271-1/+1
| | | | | | now that lines are always split. svn path=/main/trunk/; revision=11220
* Fix breakage from r11213 in INHERITED values returned from portdbapi.aux_get().Zac Medico2008-07-271-8/+4
| | | | svn path=/main/trunk/; revision=11217
* Serialize src_unpack() $DISTDIR access for live ebuilds since otherwise theyZac Medico2008-07-271-1/+1
| | | | | | | can interfere with eachother. This will have to rely on a hardcoded list of eclasses until we create way to properly tag this information in the metadata. svn path=/main/trunk/; revision=11213
* Fix LinkageMap.findConsumers() to check whether the master link for a libZac Medico2008-07-261-1/+19
| | | | | | | | | | | | | | | | | | | | providing a given soname actually points to that lib. If there is another version of this lib with the same soname and the master link points to that other version, this lib will be shadowed and won't have any consumers. By eliminating false, positives this way, we avoid the following state after upgrade from media-libs/mesa-7.0.3 to media-libs/mesa-7.1_rc3: # scanelf -S /usr/lib64/libGLU.so* TYPE SONAME FILE ET_DYN libGLU.so.1 /usr/lib64/libGLU.so ET_DYN libGLU.so.1 /usr/lib64/libGLU.so.1 ET_DYN libGLU.so.1 /usr/lib64/libGLU.so.1.3 ET_DYN libGLU.so.1 /usr/lib64/libGLU.so.1.3.070003 ET_DYN libGLU.so.1 /usr/lib64/libGLU.so.1.3.070100 <- shadowed lib Thanks to Diego "Flameeyes" Pettenò for reporting this issue. svn path=/main/trunk/; revision=11200
* Bug #232924 - When the user specifies a non-existent set, display a list ofZac Medico2008-07-261-0/+3
| | | | | | existing sets. svn path=/main/trunk/; revision=11197
* Bug #228085 - In the event of a file collision, the explanation about theZac Medico2008-07-261-1/+14
| | | | | | | | collision and how to solve it may not be visible via a scrollback buffer, especially if the number of file collisions is large. Therefore, show a summary at the end and refer the user to the elog messages. svn path=/main/trunk/; revision=11196
* Detect an invalid cpv passed into portdbapi.findname2() and raise anZac Medico2008-07-251-1/+3
| | | | | | | InvalidPackageName exception. This avoids silent or nonsense errors later on. svn path=/main/trunk/; revision=11188
* Bug #206773 - Add a new PORTAGE_IONICE_COMMAND variable that emerge usesZac Medico2008-07-241-1/+2
| | | | | | | | | to adjust ionice priority, similar to PORTAGE_NICENESS but used more like FETCHCOMMAND since so that portage doesn't have to know anything about ionice options. The command should include a \${PID} place-holder to be substituted with an integer pid. svn path=/main/trunk/; revision=11182
* Bug #228117 - Insert a trailing newline in the getconfig() input file asZac Medico2008-07-241-1/+39
| | | | | | | | | necessary to avoid a silent error in shlex that is triggered by a source statement at the end of the file without a trailing newline after the source statement. To solve this problem, derive a special file class that inserts a newline just before eof when necessary. svn path=/main/trunk/; revision=11181
* Avoid "0 files checked ..." messages reported by Pesa.Zac Medico2008-07-231-1/+1
| | | | svn path=/main/trunk/; revision=11177
* In dblink.unmerge(), redirect preserve-libs "!needed" messages to the log fileZac Medico2008-07-221-1/+2
| | | | | | when in background mode. svn path=/main/trunk/; revision=11167
* Redirect build log eqawarn messages to the log file when in background mode.Zac Medico2008-07-221-2/+2
| | | | svn path=/main/trunk/; revision=11164
* Redirect dblink._preserve_libs() messages to the log when in background mode.Zac Medico2008-07-221-2/+5
| | | | svn path=/main/trunk/; revision=11161
* Add initial lib awareness for --depclean and --prune. Currently it will simplyZac Medico2008-07-211-1/+23
| | | | | | | | bail out if the clean list contains a package that will cause link breakage if removed. TODO: Calculate a new cleanlist instead of bailing out, and implement a package set for rebuilding consumers. svn path=/main/trunk/; revision=11157
* In dblink.findProviders(), clone the "path" variable before extending itZac Medico2008-07-211-0/+1
| | | | | | since obviously it shouldn't grow each time that findProviders() is called. svn path=/main/trunk/; revision=11156
* In dblink._preserve_libs(), strip leading $ROOT from contents paths so thatZac Medico2008-07-211-2/+4
| | | | | | it works when $ROOT != /. svn path=/main/trunk/; revision=11155
* For --depclean and --prune, eliminate duplicate graph creation code by re-usingZac Medico2008-07-212-0/+7
| | | | | | | | the depgraph class to do it. The depgraph class was used in the past for this purpose but back then it didn't handle USE flags correctly for installed packages. Now it works fine. svn path=/main/trunk/; revision=11152
* Fix broken references to the old elog_modules namespace.Zac Medico2008-07-201-2/+2
| | | | svn path=/main/trunk/; revision=11150
* Bug #231464 - Replace erroneous "return" statement in elog_process() withZac Medico2008-07-191-1/+1
| | | | | | a continue statement. Thanks to TGL for this patch. svn path=/main/trunk/; revision=11138
* Fix typo.Zac Medico2008-07-181-1/+1
| | | | svn path=/main/trunk/; revision=11124
* Suppress counter initialization warning messages inZac Medico2008-07-181-4/+7
| | | | | | | | vardbapi.get_counter_tick_core() in cases when the vdb is empty. This avoids pointless error messages when merging packages into a new root, like when building stage 1. svn path=/main/trunk/; revision=11123
* Add background output redirection and async ebuild phase support forZac Medico2008-07-181-3/+4
| | | | | | PackageUninstall (automatic uninstalls that solve blockers). svn path=/main/trunk/; revision=11122
* Use dblink._eerror() to eliminate duplicate code.Zac Medico2008-07-181-14/+2
| | | | svn path=/main/trunk/; revision=11119
* If an problem is detected in dblink._security_check(), log it via elog soZac Medico2008-07-181-10/+21
| | | | | | that it's properly displayed in the foreground even when in background mode. svn path=/main/trunk/; revision=11118
* Redirect dblink elog messages from stdout to the log file when in backgroundZac Medico2008-07-172-11/+26
| | | | | | | | mode. This is implemented by adding a new "out" parameter to the portage.elog.e* functions, which can be used to send output to an arbitary file instead of stdout. svn path=/main/trunk/; revision=11117
* When dblink is looping over files for merge/unmerge, temporarily yield to theZac Medico2008-07-171-6/+33
| | | | | | | | | | scheduler each time a fixed number of files are processed (currently 20). This gives the scheduler an opportunity to service pending poll events. This is implemented with a new PollScheduler._schedule_yield() method which calls poll() exactly once, without blocking, and any services any resulting poll events. svn path=/main/trunk/; revision=11116
* Fix identation (tabnanny complains about this) branches/prefix r11110Zac Medico2008-07-171-1/+1
| | | | svn path=/main/trunk/; revision=11111
* Handle the case in dblink.unmerge() when the log file is a temp file and soZac Medico2008-07-171-1/+6
| | | | | | it doesn't exist after postrm cleaning. svn path=/main/trunk/; revision=11100
* * Add a new portage.util.writemsg_level() function which uses a "level"Zac Medico2008-07-173-25/+54
| | | | | | | | | | | | | | | | parameter to control whether the message is sent to stdout or stderr. When level >= logging.WARNING then the message is sent to stderr, otherwise it is sent to stdout. The noiselevel is passed directly to writemsg(). * Use writemsg_level() for handling merge messages from dblink and add appropriate noiselevel values to each call. * Add a writemsg_level parameter to portage.env_update() so that dblink can pass in dblink._display_merge() as a means to redirect output back to the scheduler for appropriate handling when running in the background. svn path=/main/trunk/; revision=11098
* Eliminate duplicate code by making EbuildProcess inherit from SpawnProcessZac Medico2008-07-171-6/+6
| | | | | | instead of SubProcess. svn path=/main/trunk/; revision=11092
* Avoid raising an IndexError from deprecated_profile_check() if the deprecatedZac Medico2008-07-161-1/+5
| | | | | | | file happens to be empty. Instead just refer to the "Gentoo Upgrading Guide". Thanks to armin76 for reporting. svn path=/main/trunk/; revision=11088
* Add async support for calling functions in misc-functions.sh:Zac Medico2008-07-161-7/+23
| | | | | | | | | | | | | | * Create a new MiscFunctionsProcess class derived from SpawnProcess. * Add "background" support to the SpawnProcess class and split out a _spawn() template function so MiscFunctionsProcess can override it. * Rename the existing EbuildPhase class to EbuildProcess. * Create a new EbuildPhase class derived from CompositeTask. This class spawns the EbuildProcess and MiscFunctionsProcess classes as sub-tasks. svn path=/main/trunk/; revision=11072
* Remove the config._filter_calling_env attribute since it's not really needed.Zac Medico2008-07-161-14/+13
| | | | | | Replace it with an simple os.path.exists() call inside config.environ(). svn path=/main/trunk/; revision=11071
* Pass the whole dblink instance into Scheduler._dblink_display_merge() in caseZac Medico2008-07-161-2/+1
| | | | | | it's ever needed. svn path=/main/trunk/; revision=11069
* Redirect dblink.merge() output to the log file when --jobs > 1.Zac Medico2008-07-161-26/+38
| | | | svn path=/main/trunk/; revision=11068
* Make dblink._display_merge() detect scheduler presence internally.Zac Medico2008-07-161-6/+6
| | | | svn path=/main/trunk/; revision=11067