summaryrefslogtreecommitdiffstats
path: root/pym/emerge
Commit message (Collapse)AuthorAgeFilesLines
* When --deep is not enabled, many dependencies are dicarded andZac Medico2007-09-231-13/+25
| | | | | | | | | | | | | left out of the digraph. This patch prevents dependencies from being discarded in some cases where the are needed in order to optimize merge order. It also modifies the DepPriority.rebuild attribute so that it only applies to build time dependencies. This leads to better merge order in some cases when --deep is not enabled. For example, `emerge xf86-input-keyboard xorg-server` will now properly merge xorg-server before xf86-input-keyboard (problem from bug #192254, comment #5). svn path=/main/trunk/; revision=7797
* Flush stderr and stdout if their file descriptors are in fd_pipes at the ↵Zac Medico2007-09-221-4/+0
| | | | | | beginning of spawn(). svn path=/main/trunk/; revision=7795
* Flush stdout before calling pkg_info() to ensure that output always shows in ↵Zac Medico2007-09-221-0/+4
| | | | | | the correct order. svn path=/main/trunk/; revision=7794
* When --with-bdeps=y is enabled for built packages, pull in build time deps asZac Medico2007-09-221-6/+16
| | | | | | | | | | requested, but marked them as "satisfied" since they are not strictly required. This allows more freedom in the merge order calculation for solving circular dependencies. Don't convert to PDEPEND since that could make --with-bdeps=y less effective if it is used to adjust merge order to prevent built_with_use() calls from failing. svn path=/main/trunk/; revision=7793
* Mask binary packages if their CHOST does not match the one defined in make.conf.Zac Medico2007-09-191-6/+22
| | | | svn path=/main/trunk/; revision=7792
* Bug #190781 - Don't include --oneshot in the options that --update implies.Zac Medico2007-09-181-2/+1
| | | | svn path=/main/trunk/; revision=7790
* Revert the workaround for bug #192341 since it will be much cleaner if we ↵Zac Medico2007-09-151-37/+0
| | | | | | fall back to spawning the chflags command when the freebsd module is unavailable. svn path=/main/trunk/; revision=7785
* Bug #192341 - Make emerge bail out on FreeBSD if the freebsd python moduleZac Medico2007-09-131-0/+37
| | | | | | | | | fails to import. Display a notification that "ignore-missing-freebsd-module" can be added to FEATURES in order to bypass the error. If that feature is enabled but the freebsd python module imported successfully, show a warning message since the user should remove if from FEATURES asap. svn path=/main/trunk/; revision=7780
* Bug #192346 - The emerge --help shows a -i option that does not exist.Zac Medico2007-09-131-1/+1
| | | | svn path=/main/trunk/; revision=7779
* Bug #192321 - Clean dir.old cruft so that they don't prevent unmerge ofZac Medico2007-09-131-0/+10
| | | | | | otherwise empty directories. svn path=/main/trunk/; revision=7774
* Adjust for r7767Marius Mauch2007-09-111-5/+5
| | | | svn path=/main/trunk/; revision=7768
* In depgraph.altlist(), try to merge asap_nodes sooner by giving them an ↵Zac Medico2007-09-081-1/+2
| | | | | | exemption from the accept_root_node flag. (branches/2.1.2 r7762) svn path=/main/trunk/; revision=7763
* Fix a typo.Zac Medico2007-09-081-1/+1
| | | | svn path=/main/trunk/; revision=7761
* Fix a typo.Zac Medico2007-09-061-1/+1
| | | | svn path=/main/trunk/; revision=7729
* In the topological sort for merge order, try to avoid selecting root nodesZac Medico2007-09-051-2/+34
| | | | | | | | | | | | whenever possible. This helps ensure that the maximimum possible number of soft dependencies have been removed from the graph before their parent nodes have been selected. This is especially important when those dependencies are going to be rebuilt by revdep-rebuild or `emerge -e system` after the CHOST has been changed (like when building a stage3 from a stage2). With this patch, `emerge -e system` properly rebuilds dev-lang/python before sys-apps/file, which helps to avoid a potential build failure. svn path=/main/trunk/; revision=7728
* Move blocker handling from depgraph.create() to select_dep().Zac Medico2007-08-251-12/+11
| | | | svn path=/main/trunk/; revision=7701
* Remove pointless information from --info outputMarius Mauch2007-08-251-20/+0
| | | | svn path=/main/trunk/; revision=7695
* Call config.regenerate() after config.reload() so that the incrementals are ↵Zac Medico2007-08-241-0/+1
| | | | | | restacked. svn path=/main/trunk/; revision=7693
* Use a config.reload() method to explicitly reload /etc/profile.env when ↵Zac Medico2007-08-241-1/+1
| | | | | | setting up the ebuild environment. svn path=/main/trunk/; revision=7692
* Make depgraph.select_dep() node reuse work when in --usepkgonly mode.Zac Medico2007-08-231-54/+55
| | | | svn path=/main/trunk/; revision=7686
* Make depgraph.create() avoid metadata lookups for binary packages and ↵Zac Medico2007-08-231-2/+11
| | | | | | ebuilds in cases where an installed package has already been added to the graph. This greatly improves performance when the graph contains a large number of installed packages. svn path=/main/trunk/; revision=7680
* Fix a typo from r7663.Zac Medico2007-08-231-1/+1
| | | | svn path=/main/trunk/; revision=7676
* Skip --newuse checks for nodes that have already been added to the graph as ↵Zac Medico2007-08-221-0/+4
| | | | | | "merge" nodes. svn path=/main/trunk/; revision=7671
* Make depgraph.select_dep() reuse cached metadata from nodes that have ↵Zac Medico2007-08-221-6/+25
| | | | | | already been added to the graph. svn path=/main/trunk/; revision=7666
* Pass complete package metadata from depgraph.select_dep() into create() in ↵Zac Medico2007-08-221-40/+37
| | | | | | order to minimize aux_get calls. svn path=/main/trunk/; revision=7663
* Make --info detect more /etc/*-release files as suggested by grobian.Zac Medico2007-08-221-10/+18
| | | | svn path=/main/trunk/; revision=7659
* Try harder to figure out what OS we are runningAlec Warner2007-08-211-5/+12
| | | | svn path=/main/trunk/; revision=7652
* For bug #189219, use pkgcmp() to sort versions in selected/protected/omitted ↵Zac Medico2007-08-171-5/+7
| | | | | | unmerge display. svn path=/main/trunk/; revision=7639
* Fix existing_node logic inside depgraph.create().Zac Medico2007-08-161-20/+15
| | | | svn path=/main/trunk/; revision=7628
* Combine 2 locations in depgraph.create() where nodes are added to the ↵Zac Medico2007-08-161-19/+14
| | | | | | digraph. This ensures that dependencies on "rebuild" nodes always have their priority increased. svn path=/main/trunk/; revision=7627
* Always assign higher priority to dependencies on packages that are being ↵Zac Medico2007-08-161-11/+13
| | | | | | rebuilt (except when --emptytree is enabled since all packages are merged in that case). This optimizes merge order so that dependencies are rebuilt/updated as soon as possible. svn path=/main/trunk/; revision=7625
* For bug #188782, dependencies on packages specified as arguments are given ↵Zac Medico2007-08-151-24/+39
| | | | | | higher priority since the currently installed version has been rendered useless by ABI breakage. It's okay to increase the priority here even if the caller is not revdep-rebuild. svn path=/main/trunk/; revision=7604
* Make sure to skip info dir files with the .old extension.Zac Medico2007-08-141-1/+2
| | | | svn path=/main/trunk/; revision=7602
* For bug #188782, keep "nomerge" nodes in the graph during the merge order ↵Zac Medico2007-08-141-4/+2
| | | | | | calculation so that merge order is better in cases where installed packages have unsatisfied dependencies. svn path=/main/trunk/; revision=7599
* For bug #33585, leave the old info dir file in place if there is nothing to ↵Zac Medico2007-08-121-9/+35
| | | | | | generate. svn path=/main/trunk/; revision=7593
* Update emerge --help and --info docs. Thanks to Arfrever Frehtes Taifersar ↵Zac Medico2007-08-061-1/+1
| | | | | | Arahesis in bug #137483. svn path=/main/trunk/; revision=7583
* For bug #187806, use mkstemp to create tmpservertimestampfile (instead of ↵Zac Medico2007-08-051-4/+4
| | | | | | using PORTAGE_TMPDIR). svn path=/main/trunk/; revision=7576
* Use == for comparison of portage_node since digraph.clone() makes a deepcopy ↵Zac Medico2007-08-041-1/+1
| | | | | | of the nodes. svn path=/main/trunk/; revision=7574
* Make sure that portage always has all of it's RDEPENDs installed first.Zac Medico2007-08-041-0/+7
| | | | svn path=/main/trunk/; revision=7572
* Make config updates get counted correctly for bug #187741.Zac Medico2007-08-041-1/+4
| | | | svn path=/main/trunk/; revision=7564
* Like older versions of portage, don't show the repo display if [0] is all ↵Zac Medico2007-08-011-2/+4
| | | | | | that will be shown. svn path=/main/trunk/; revision=7537
* For bug #187375, handle an ImportError when portage is downgraded to a ↵Zac Medico2007-08-011-2/+6
| | | | | | version without mod_echo. svn path=/main/trunk/; revision=7535
* Change the numeric value of DepPriority.MIN to be equal to that of a ↵Zac Medico2007-07-311-2/+2
| | | | | | satisfied PDEPEND since there is currently nothing with lower priority. svn path=/main/trunk/; revision=7528
* For bug #187142, properly pass a dbapi instance into setcpv() so that ↵Zac Medico2007-07-301-1/+1
| | | | | | USE_EXPAND wildcards work correctly. svn path=/main/trunk/; revision=7524
* Always pass a dbapi instance into a setcpv call.Zac Medico2007-07-301-1/+1
| | | | svn path=/main/trunk/; revision=7496
* For bug #137483, move the `emerge --help config` docs to the emerge man ↵Zac Medico2007-07-302-46/+3
| | | | | | page. Thanks to Arfrever Frehtes Taifersar Arahesis for this patch. svn path=/main/trunk/; revision=7430
* For bug #186480, while we transition to repository labels, avoid ? spam in ↵Zac Medico2007-07-271-1/+5
| | | | | | the repository display by ignoring a missing repository label for an installed package. (branches/2.1.2 r7409) svn path=/main/trunk/; revision=7410
* For bug #186826, always show --newuse flags that trigger reinstallation even ↵Zac Medico2007-07-271-16/+24
| | | | | | when not in --verbose mode. svn path=/main/trunk/; revision=7407
* For --buildpkgonly, say "built" instead of "merged" in the "These are the ↵Zac Medico2007-07-271-0/+2
| | | | | | packages that would be <action>" message. svn path=/main/trunk/; revision=7405
* For bug #186610, use `find <path>` to scan for config updates since `cd ↵Zac Medico2007-07-261-5/+5
| | | | | | <path>` could fail and cause the cwd to be scanned. svn path=/main/trunk/; revision=7402