summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add a more generic VariableSet to replace the InheritSet and RestrictSetZac Medico2008-08-033-80/+30
| | | | | | | classes. Thanks to Arfrever Frehtes Taifersar Arahesis for this patch from bug #233589 (with some minor adjustments from me). svn path=/main/trunk/; revision=11320
* Handle missing sets, to avoid KeyError raised from unmerge().Zac Medico2008-08-021-0/+12
| | | | svn path=/main/trunk/; revision=11319
* Document the fact that use of @installed/EverythingSet makes it impossibleZac Medico2008-08-022-2/+7
| | | | | | for emerge to solve blockers by automatic uninstallation of blocked packages. svn path=/main/trunk/; revision=11318
* Add a new RestrictSet which contains all packages that match specifiedZac Medico2008-08-022-7/+85
| | | | | | | 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
* Update the Parallel Scheduling section to describe the current algorithm.Zac Medico2008-08-011-1/+7
| | | | svn path=/main/trunk/; revision=11311
* 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-013-31/+82
| | | | | | | 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
* Fix new rejects in cnf/make.conf.*.diff.Zac Medico2008-08-012-20/+0
| | | | svn path=/main/trunk/; revision=11306
* Remove the list of FEATURES descriptions from make.conf.example and replaceZac Medico2008-08-012-59/+9
| | | | | | it with a reference to the make.conf(5) man page. svn path=/main/trunk/; revision=11305
* Bug #229033 - Use `svn propget -R svn:keywords` to detect which will haveZac Medico2008-08-011-10/+30
| | | | | | | | | | changed headers that require an additional manifest commit. Thanks to Fabian Groffen for this patch which I've made some modifications to: * For clarity, use separate "no_expansion" variable for cvs bin blobs. * Fix svn keyword parsing to properly handle multiple keywords delimited by newlines. svn path=/main/trunk/; revision=11304
* 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-313-1/+55
| | | | | | | | | | 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
* Describe InheritSet and OwnerSet.Zac Medico2008-07-311-0/+4
| | | | svn path=/main/trunk/; revision=11296
* * Rename @live-ebuilds to @live-rebuild, for consistency with the otherZac Medico2008-07-312-1/+25
| | | | | | | *-rebuild sets. * Document the new sets. svn path=/main/trunk/; revision=11295
* Remove quotes since the seem to cause incorrect results.Zac Medico2008-07-311-1/+1
| | | | svn path=/main/trunk/; revision=11294
* Add a new @module-rebuild set which emulates the behavior of theZac Medico2008-07-312-1/+43
| | | | | | | | 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-312-1/+44
| | | | | | | | | | 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
* disable default IONICE command as it breaks for non-root, and ionice might ↵Marius Mauch2008-07-311-1/+2
| | | | | | not always be available svn path=/main/trunk/; revision=11291
* 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
* Update foo[!bar=] syntax.Zac Medico2008-07-301-1/+1
| | | | svn path=/main/trunk/; revision=11283
* * 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-305-22/+28
| | | | | | | | | | | | | | 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
* Add a quiet signal handler for SIGINT and SIGTERM since emerge calls ebuildZac Medico2008-07-291-1/+16
| | | | | | | for fetchs and we don't want the user to see a traceback due to the ebuild process getting killed. svn path=/main/trunk/; revision=11268
* 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