summaryrefslogtreecommitdiffstats
path: root/pym
Commit message (Collapse)AuthorAgeFilesLines
* Add a new RestrictSet which contains all packages that match specifiedZac Medico2008-08-021-7/+67
| | | | | | | RESTRICT values. This could be useful for implementing something like a @live-rebuild based on RESTRICT metadata, as suggested in bug #233589. svn path=/main/trunk/; revision=11317
* In the file collision elog message, only say 'NOT merged' whenZac Medico2008-08-021-4/+8
| | | | | | collision-protect is enabled. Thanks to dberkholz for reporting. svn path=/main/trunk/; revision=11316
* * Add INHERITED to vardbapi._aux_cache_keys since Package.metadata_keys alsoZac Medico2008-08-011-2/+2
| | | | | | | | includes this one now. * Fix pull_me calculation inside vardbapi.aux_get() so that it correctly subtracts _mtime_ from the list of keys to pull. svn path=/main/trunk/; revision=11315
* Add debug support to PackagesSystemSet since robbat2 is reporting an emptyZac Medico2008-08-011-2/+22
| | | | | | set for some unknown reason. svn path=/main/trunk/; revision=11314
* Make EbuildFetcher pass a copy of os.environ to the ebuild(1) subprocess sov2.2_rc6Zac Medico2008-08-011-1/+6
| | | | | | | that any incremental variables have been overridden are correctly considered by the config instance in the subproccess. svn path=/main/trunk/; revision=11312
* Add DowngradeSet and OwnerSet to __all__.Zac Medico2008-08-011-1/+2
| | | | svn path=/main/trunk/; revision=11310
* Bug #233252 - Handle InvalidAtom exceptions that can be raised fromZac Medico2008-08-011-15/+20
| | | | | | depgraph._add_dep() calls inside _add_pkg_deps(). svn path=/main/trunk/; revision=11309
* Make InheritSet more like DowngradeSet, and check INHERITED from the highestZac Medico2008-08-011-7/+17
| | | | | | | visible ebuild in the portage tree rather than from the installed package itself. svn path=/main/trunk/; revision=11308
* Optimize `emaint` --fix binhost so that it the Packages file isn't re-readZac Medico2008-08-012-16/+37
| | | | | | | and re-written for each package that's updated. Instead, hold a lock for the whole time the command is running and just update it once. svn path=/main/trunk/; revision=11307
* Bug #233487 - Fix --fetch-all-uri breakage:Zac Medico2008-08-012-4/+16
| | | | | | | | | | | * Make --fetch-all-uri imply --fetchonly so that all the --fetchonly conditionals apply to --fetch-all-uri as well. * Add an EbuildFetcher.fetchall attribute, and also add the required support to portage.doebuild() for a "fetchall" phase that EbuildFetcher can invoke in the background via the ebuild(1) command. svn path=/main/trunk/; revision=11303
* Fix DowngradeSet so it's safe for cases when no ebuild is available.Zac Medico2008-07-311-0/+2
| | | | svn path=/main/trunk/; revision=11300
* Bug #233253 - Implement a @downgrade set which selects packages for whichZac Medico2008-07-311-1/+39
| | | | | | | | | | the highest visible ebuild version is lower than the currently installed version. This is useful if you have installed packages from an overlay and you want to downgrade to the highest visible after removing the overlay, even though the packages that will be dowgraded are not necessarily masked in any way. svn path=/main/trunk/; revision=11299
* Always invalidate results from _userpriv_test_write_file_cache whenZac Medico2008-07-311-1/+1
| | | | | | adjusting permissions on a given directory. svn path=/main/trunk/; revision=11298
* Bug #233458 - Fix AsynchronousTask exit listener handling so that an exitZac Medico2008-07-311-5/+17
| | | | | | | | | listener will never get called after it's been passed into removeExitListener(), since the caller of removeExitListener() needs to be able to be able to trust that the given exit listener will not be called under any circumstances. svn path=/main/trunk/; revision=11297
* Add a new @module-rebuild set which emulates the behavior of theZac Medico2008-07-311-1/+37
| | | | | | | | module-rebuild tool. The /lib/modules path is set in sets.conf via a "files" attribute of an OwnerSet instance. This can be easily used to define similar sets based on paths on installed files. svn path=/main/trunk/; revision=11293
* Implement a new @live-ebuilds which is generated from installed packagesZac Medico2008-07-311-1/+38
| | | | | | | | | | that inherit from know live eclasses such as cvs, darcs, git, mercurial, and subversion. The list of eclasses is controlled by an "inherits" attribute that is configure in sets.conf for and instance of InheritSet. This set serves a purpose similar to the -scm ebuild suffix that has been proposed in GLEP 54. svn path=/main/trunk/; revision=11292
* Fixes in portage.fetch() for bugs #233303 and #94133:Zac Medico2008-07-311-2/+48
| | | | | | | | | | | | | * Totally skip $DISTDIR creation if the fetch_to_ro feature is enabled. * Don't touch $DISTDIR permissions unless unless usepriv and/or userfetch are enabled. * When usepriv and/or userfetch are enabled, test whether or not a process that has dropped privileges is able to create a file in the directory, and only adjust permissions if the test fails. * Completely svn path=/main/trunk/; revision=11290
* Split out a _spawn_fetch() function that will be useful for implementing aZac Medico2008-07-311-29/+49
| | | | | | userpriv testcase for bug #233303. svn path=/main/trunk/; revision=11289
* Bug #233421 - Fix grammar, missing "be" in --update description. Thanks toZac Medico2008-07-301-2/+2
| | | | | | Mikael Magnusson for this patch. svn path=/main/trunk/; revision=11288
* Fix typo.v2.2_rc5Zac Medico2008-07-301-1/+1
| | | | svn path=/main/trunk/; revision=11284
* * Fix Scheduler._restart_if_necessary() breakage so that the given packageZac Medico2008-07-301-14/+16
| | | | | | | | is correctly compared to the last one in the merge list. * Update code in depgraph.display() to be more consistent with the code in Scheduler._is_restart_necessary(). svn path=/main/trunk/; revision=11282
* Remove redundant use dep validation code that's handled by regular expressionZac Medico2008-07-301-6/+2
| | | | | | now. svn path=/main/trunk/; revision=11281
* Remove unused variable.Zac Medico2008-07-301-1/+1
| | | | svn path=/main/trunk/; revision=11280
* * Add more use dep validation.Zac Medico2008-07-302-9/+28
| | | | | | * Fix broken handling of !foo? reported by ABCD. svn path=/main/trunk/; revision=11279
* When checking for news items in --pretend mode, pass update=False intoZac Medico2008-07-301-22/+27
| | | | | | | | | | | the NewsManager.getUnreadItems() call. Emerge shouldn't have to update anything anyway when in --pretend mode, and this helps to avoid potential permission problems. In order to pass the relevant information about options (--pretend state) to the new code, supporting function parameters have been added to display_news_notification(), post_emerge(), and checkUpdatedNewsItems(). svn path=/main/trunk/; revision=11278
* Put a 5 second cap on the delay produced by Scheduler._job_delay().Zac Medico2008-07-301-2/+5
| | | | svn path=/main/trunk/; revision=11277
* Just return a boolean "state changed" value fromZac Medico2008-07-301-7/+7
| | | | | | | Scheduler._schedule_tasks_imp(), since the other "remaining" part is now unused. svn path=/main/trunk/; revision=11276
* * Optimize SequentialTaskQueue.schedule() by using a _dirty attributeZac Medico2008-07-301-13/+18
| | | | | | | | | | to track whether anything relevant has changed since the last schedule call. Since we can always rely on exist listeners being called, set of running tasks is always pruned automatically and there is never any need to actively prune it. * Remove the unused SequentialTaskQueue.auto_schedule feature. svn path=/main/trunk/; revision=11275
* Change conditional USE deps syntax and expermental EAPI from 2_pre0 to 2_pre1.Zac Medico2008-07-304-19/+25
| | | | | | | | | | | | | | Conditional syntax examples: Compact Form Equivalent Expanded Form foo[bar?] bar? ( foo[bar] ) !bar? ( foo ) foo[!bar?] bar? ( foo ) !bar? ( foo[-bar] ) foo[bar=] bar? ( foo[bar] ) !bar? ( foo[-bar] ) foo[!bar=] bar? ( foo[-bar] ) !bar? ( foo[bar] ) svn path=/main/trunk/; revision=11274
* Count state changes in Scheduler._schedule_tasks() and avoid some extra callsZac Medico2008-07-291-5/+12
| | | | | | when nothing changes. svn path=/main/trunk/; revision=11273
* Fix _choose_pkg() to always return something if nothing is running or merging.Zac Medico2008-07-291-0/+3
| | | | svn path=/main/trunk/; revision=11272
* Avoid triggering a tight loop AssertionError in Scheduler._main_loop().Zac Medico2008-07-291-1/+2
| | | | svn path=/main/trunk/; revision=11271
* Fix the last part of Scheduler._main_loop() to work correctly now thatZac Medico2008-07-291-5/+7
| | | | | | all the queues have auto_schedule disabled. svn path=/main/trunk/; revision=11270
* Disable auto_schedule on all of Scheduler._task_queues and schedule themZac Medico2008-07-291-8/+4
| | | | | | inside _schedule_tasks(). This should help solve a tight loop. svn path=/main/trunk/; revision=11269
* Fix Scheduler._set_digraph() to correctly handle cases when max_jobs is True.Zac Medico2008-07-291-1/+2
| | | | svn path=/main/trunk/; revision=11267
* Make sure Scheduler._choose_pkg() doesn't return a package too early whenZac Medico2008-07-291-0/+3
| | | | | | there's no digraph and the previous merge hasn't completed yet. svn path=/main/trunk/; revision=11266
* Fix Scheduler._choose_pkg() so that it doesn't choose packages prematurelyZac Medico2008-07-291-1/+1
| | | | | | in some cases. svn path=/main/trunk/; revision=11265
* Enable Scheduler._job_delay() whenever --load-average is enabled, for wholeZac Medico2008-07-291-18/+5
| | | | | | | time the scheduler is running. This protects against too many jobs being sheduled if the load average temporarily drops. svn path=/main/trunk/; revision=11264
* During the first minute of entering the main scheduler loop, if --load-averageZac Medico2008-07-291-0/+38
| | | | | | | | | is enabled then limit the rate that new jobs are spawned, so that the load average measurement has time to respond to the new load introduced by the new jobs. The time between spawning new jobs is proportional to the number of currently running jobs. svn path=/main/trunk/; revision=11263
* Fix slightly broken loop logic in insert_optional_args() by converting it toZac Medico2008-07-291-7/+9
| | | | | | pop args off of a stack. svn path=/main/trunk/; revision=11262
* Add support for the --jobs option to be specified without anZac Medico2008-07-292-12/+81
| | | | | | | | | | | | | | argument, and also support -j as a short option. Since optparse doesn't natively support options with non-required args, create an insert_optional_args() function that inserts the required argument into the args so that optparse is happy. The function inserts the string True as a substitute for the argument that is required. This string is later converted to the True constant when stored in the emerge opts dict (similar to how normal boolean options are stored). The PollScheduler and SequentialTaskQueue classes recognize the meaning of the True constant to mean unlimited concurrent jobs. svn path=/main/trunk/; revision=11261
* In apply_recursive_permissions(), ignore InvalidLocation exceptions such asZac Medico2008-07-291-2/+6
| | | | | | | FileNotFound and DirectoryNotFound since sometimes things disappear, like when adjusting permissions on DISTCC_DIR. svn path=/main/trunk/; revision=11260
* Tweak table alignment.Zac Medico2008-07-291-2/+2
| | | | svn path=/main/trunk/; revision=11259
* Implement _use_dep.__nonzero__().Zac Medico2008-07-291-0/+3
| | | | svn path=/main/trunk/; revision=11258
* Fix _use_dep.__str__() to work correctly in the case when conditional USEZac Medico2008-07-291-0/+2
| | | | | | | deps have evaluated to nothing (empty string rather than []). Thanks to ABCD for reporting. svn path=/main/trunk/; revision=11257
* Redirect the FEATURES=buildsyspkg message to the log when in background mode.Zac Medico2008-07-291-6/+18
| | | | svn path=/main/trunk/; revision=11256
* 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
* Make use of the new config.iteritems() method.Zac Medico2008-07-281-1/+1
| | | | svn path=/main/trunk/; revision=11251
* Fix broken reference to "categories" in CategorySet.singleBuilder(). ThanksZac Medico2008-07-281-1/+1
| | | | | | to Thargor for reporting. svn path=/main/trunk/; revision=11250