summaryrefslogtreecommitdiffstats
path: root/pym/_emerge
Commit message (Collapse)AuthorAgeFilesLines
* depgraph: pull in new virtual slots with --updateZac Medico2011-09-111-11/+58
| | | | | | | | This re-implements the fix from commit 21330075f07248765016e104b3ba8216903f1ecb, without introducing the unwanted behavior reported in bug 382557. This involves checking the direct dependencies of virtual slot updates to make sure they are all visible, before pulling them in.
* Revert virtual slot update code for bug 382557.Zac Medico2011-09-111-1/+0
| | | | | | This reverts the behavior change from commit 21330075f07248765016e104b3ba8216903f1ecb, since it's too aggressive in pulling in new virtual slots that may have masked dependencies.
* depgraph: refactor virtual slot --update codeZac Medico2011-09-101-28/+26
| | | | | | | This re-implements the change from commit 21330075f07248765016e104b3ba8216903f1ecb in order to avoid executing unnessary virtual slot expansion code when the given atom specifies a slot or --update is enabled.
* depgraph: use Atom.with_slot() to match virtualsZac Medico2011-09-101-1/+1
| | | | This ensures that USE deps and repo deps are preserved here.
* depgraph: use _iter_match_pkgs_any where possibleZac Medico2011-09-091-6/+5
|
* depgraph: pull in new virtual slots with --updateZac Medico2011-09-091-1/+7
| | | | | | | | Previously, the virtual cost minimization code from bug #141118 would prevent virtual dependencies from pulling in new slots. That behavior was not desired for --update, so now it's fixed to pull in the latest slot available. This allows virtual/jdk-1.7.0 to be pulled in by dependencies when --update is enabled.
* Update unread news items in --pretend mode.Zac Medico2011-09-041-4/+17
| | | | | | | | | This has been disabled since commit c7faa634369e61b87a40172ceb0a5cb9494fd518, but the only reason cited was to avoid permissions issues. So, go ahead and enable it, and handle PermissionDenied just in case. NOTE: The NewsManager typically handles permission errors by returning silently, so PermissionDenied won't necessarily be raised even if we do trigger a permission error.
* Join /var/log/emerge.log with EPREFIX.Zac Medico2011-09-031-1/+10
|
* Handle unpickle EOFError.Zac Medico2011-09-031-1/+1
|
* Handle unpickle AttributeError (bug #381705).Zac Medico2011-09-031-3/+7
|
* Show merge list before "missed update" messages.Zac Medico2011-09-011-0/+2
|
* Add FEATURES=clean-logs support.Zac Medico2011-08-311-2/+33
| | | | | | | Enable automatic execution of the command specified by the PORT_LOGDIR_CLEAN variable. The default PORT_LOGDIR_CLEAN setting will remove all files from PORT_LOGDIR that were last modified at least 7 days ago.
* Respect package.env buildpkg FEATURES settings.Zac Medico2011-08-303-4/+9
| | | | This will fix bug #318897.
* Send "Recording in world" msg to stdout.Zac Medico2011-08-281-1/+2
|
* Fix "ResourceWarning: unclosed file" with Python 3.2.Arfrever Frehtes Taifersar Arahesis2011-08-271-1/+1
|
* python3.2 fixes: ResourceWarning: unclosed fileZac Medico2011-08-261-1/+1
|
* Update --rebuild-if-* flags to rebuild when build dependencies are changed.David James2011-08-262-99/+69
| | | | | | | | | | | | | | Right now, the --rebuild-if-* flags only rebuild packages that are used at both run-time and build-time. This doesn't help for packages that are used only at build-time (for example, static libaries). Rebuilding packages whenever a build-time dependency is changed is easier to understand and explain, and it handles all cases correctly. BUG=chromium-os:15517 TEST=Run emerge test suite. Change-Id: Iae8dab24e8acb6625bc1a0ce41862e90b232eb84
* python3.2 fixes: ResourceWarning: unclosed fileZac Medico2011-08-261-1/+2
|
* python3.2 fixes: ResourceWarning: unclosed fileZac Medico2011-08-251-0/+13
|
* python3.2 fixes: ResourceWarning: unclosed fileZac Medico2011-08-253-3/+16
|
* Add some comments, which will allow to easier find code, which should beArfrever Frehtes Taifersar Arahesis2011-08-252-0/+2
| | | | removed when support for older versions of Python is removed.
* python3.2 fixes: ResourceWarning: unclosed fileZac Medico2011-08-241-0/+4
|
* python3.2 fixes: use array.tobytes()Zac Medico2011-08-242-2/+10
|
* Improve the invalid profile msg (bug 379327).Mark Wagner2011-08-151-4/+4
|
* emerge --search: account for USE in fetch sizeZac Medico2011-08-141-7/+19
|
* resume_depgraph: prune all indirect unsatisfiedZac Medico2011-08-101-6/+6
| | | | This should fix some cases of bug 378187.
* Package: remove unused profile.system mask typeZac Medico2011-08-081-1/+0
|
* Remove "profile" mask support as per PMS 5.2.7.Zac Medico2011-08-081-5/+0
| | | | | | | | Since this is considered a "legacy" feature by PMS 5.2.7, there shouldn't be any need to support it anymore. Profiles can use package.mask to get similar results, and package.mask additionally allows for comments which are conveniently displayed by emerge. This will fix bug #377907.
* action_info: don't mix print with writemsg_stdoutZac Medico2011-08-041-46/+45
| | | | | This should prevent strange output buffering/order issues reported when piping output to head.
* Scheduler: fix parallel-fetch order with --jobs=1Zac Medico2011-08-021-0/+7
| | | | | | This avoids a case where the first prefetcher is discarded, causing the second prefetcher to occupy the fetch queue before the first fetcher has an opportunity to execute.
* depgraph: fix duplicate zero pkg count displayZac Medico2011-08-011-1/+1
|
* post_emerge: just return instead of sys.exit()Zac Medico2011-08-011-7/+1
|
* depgraph: handle invalid SRC_URIZac Medico2011-07-271-2/+7
| | | | This is a minimal fix for bug #376577.
* depgraph: make --exclude handle contradictionsZac Medico2011-07-251-1/+7
| | | | | This makes contradictory things like `emerge -e @system --exclude gcc` work as expected.
* LinkageMapELF: add getOwners() method and use itZac Medico2011-07-222-2/+18
| | | | | | This preserves the owner information inside LinkageMap.rebuild() and uses it to implement a getOwners() method, which makes it possible to efficiently lookup owners of library providers and consumers.
* BinpkgFetcher: support selinux PORTAGE_FETCH_TZac Medico2011-07-212-2/+14
| | | | | Thanks to Sven Vermeulen <sven.vermeulen@siphos.be> for the initial patch posted on bug #375835.
* Scheduler: fix _running_tasks for uninstallsv2.2.0_alpha46Zac Medico2011-07-191-1/+3
|
* EbuildBuild: pass ebuild_path to EbuildFetcherZac Medico2011-07-191-0/+1
| | | | This avoids a redundant pordbapi.findname() call.
* Make emerge --noreplace identical to --selective.Zac Medico2011-07-194-25/+6
| | | | | | This removes a very subtle difference in --noreplace package selection logic which is not very useful and triggers strange package selection choices in some cases, as reported in bug #375571.
* Scheduler: simplify _terminate_tasksZac Medico2011-07-181-19/+8
| | | | | | This should also fix bugs related to CompositeTask instances waiting for queued tasks to start and not being properly terminated in this case.
* Scheduler: allow concurrent fetch with --jobs > 1Zac Medico2011-07-171-3/+12
| | | | | | | This reverts behavior from bug #375331 (commit f07f8386e945b48358c11c121960e4833c539752) for cases in which --jobs is greater than 1. We can add a separate --fetch-jobs option later, but for now, this preserves previous behavior for --jobs > 1.
* Fix a typo in a doc string.Arfrever Frehtes Taifersar Arahesis2011-07-171-1/+1
|
* EbuildFetcher: handle FileNotFoundZac Medico2011-07-161-0/+3
|
* Fix a typo in a comment.Zac Medico2011-07-161-1/+1
|
* Binpkg: use fetch queue to cap fetch threadsZac Medico2011-07-161-1/+6
| | | | | This is analogous to commit f07f8386e945b48358c11c121960e4833c539752 for bug #375331, but for fetching from binhosts.
* EbuildBuild: skip the fetch queue when possibleZac Medico2011-07-162-16/+129
| | | | | | | Since commit f07f8386e945b48358c11c121960e4833c539752, it was possible for EbuildBuild to wait on the fetch queue even in cases in which all required files had been previously fetched. Now this case is optimized to skip the fetch queue, as discribed in bug #375331, comment #2.
* Scheduler: enable prefetch for first packageZac Medico2011-07-161-4/+1
| | | | | | Since commit f07f8386e945b48358c11c121960e4833c539752, the first will have to wait for later ones to fetch unless we start its prefetcher first.
* EbuildBuild: use fetch queue to cap fetch threadsZac Medico2011-07-151-1/+5
| | | | This will fix bug #375331.
* Use portage.subprocess_getstatusoutput() more.Zac Medico2011-07-122-10/+5
|
* emergelog: use string format op for time.time()Zac Medico2011-07-121-4/+7
|