summaryrefslogtreecommitdiffstats
path: root/pym/_emerge
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* emergelog: remove unneeded seek for append modeZac Medico2011-07-121-3/+0
|
* resume_depgraph: be careful with parent_node typeZac Medico2011-07-121-2/+3
|
* unmerge: reject USE conditionals in argumentsZac Medico2011-07-121-2/+12
|
* Remove unneeded _unicode_decode for io.StringIO.Zac Medico2011-07-124-19/+7
| | | | | | | Since StringIO.StringIO fallback was removed in commit 5df96179611ce0e98727945b1800b43daccedfc2, we can rely on io.StringIO.getoutput() to return unicode, so there's no need to call _unicode_decode on the result.
* Remove python-2.6 StringIO.StringIO fallback.Zac Medico2011-07-126-15/+14
| | | | | | | | Since the io module in python-2.6 was broken when threading was disabled, we needed to fall back from io.StringIO to StringIO.StringIO in this case (typically just for Gentoo's stage1 and stage2 tarballs). Now that python-2.7 is stable in stages and we rely on io.open() being available, we can also rely on io.StringIO being available.
* autounmask-write: create /etc/portage if neededZac Medico2011-07-111-1/+3
|
* resume_depgraph: fix breakage from reposyntaxZac Medico2011-07-111-1/+3
| | | | | This is a major regression that has been triggering lots of complaints about emerge --keep-going.
* Log maintainer info for pretend and nofetch.Zac Medico2011-07-111-4/+11
| | | | | | Also, suppress this maintainer info from going to stdout since it's intended for the log and it doesn't necessarily need to be visible elsewhere. This will fix bug #374809.
* is_valid_package_atom: fix circular importZac Medico2011-07-112-16/+15
| | | | | | Due to a quirk in python import behavior, this only failed nondeterministically. However, the new preinst sanity test in the portage-9999 ebuild tends to trigger it more often for some people.
* Migrate from codecs.open() to io.open().Zac Medico2011-07-106-22/+27
| | | | | | | | | | | | | | | | | The io.open() function is the same as the built-in open() function in python3, and its implementation is optimized in python-2.7 and later. In addition to the possible performance improvement, this also allows us to avoid any future compatibility issues with codecs.open() that may arise if it is delegated to the built-in open() function as discussed in PEP 400. The main caveat involved with io.open() is that TextIOWrapper.write() raises TypeError if given raw bytes, unlike the streams returned from codecs.open(). This is mainly an issue for python2 since literal strings are raw bytes. We handle this by wrapping TextIOWrapper.write() arguments with our _unicode_decode() function. Also, the atomic_ofstream class overrides the write() method in python2 so that it performs automatic coercion to unicode when necessary.
* circular_dependency: fix total_flags calcZac Medico2011-07-101-2/+2
|
* depgraph: more debug output for _add_pkgZac Medico2011-07-102-17/+44
| | | | | This should make it easier to debug cases like bug 374423, among others.
* slot_collision: fix more for bug 374423Zac Medico2011-07-101-0/+9
|
* slot_collision: fix AttributeError for bug 374423Zac Medico2011-07-101-0/+14
|
* depgraph: reject USE conditionals in argumentsZac Medico2011-07-091-0/+8
|
* circular_dependency: fix REQUIRED_USE testZac Medico2011-07-091-0/+17
|
* circular_dependency: fix ridiculously long loopZac Medico2011-07-091-10/+0
| | | | | | | | The flags from REQUIRED_USE were added to affecting_use, which was not really necessary and was a bad idea because a number of flags in affecting_use affects our number of loops exponentially. This will fix bug #374397 in which the large number of flags in the REQUIRED_USE of dev-lang/php-5.3.6-r1 triggered execution of 2 ^ 45 loops.
* slot_collision: be consistent with missing IUSEZac Medico2011-07-091-7/+14
| | | | | | Special handling for missing IUSE that was introduced in commit 9a193d42032005396800eb30e550691513529c79 is also useful in one more spot.
* circular_dependency: show debug graph earlierZac Medico2011-07-092-2/+11
| | | | | This might help in some cases like bug 374397 where we're troubleshooting the circular_dependency code.
* circular_dependency: use itertools.product()Zac Medico2011-07-091-24/+3
| | | | | Python's cartesian product function does exactly what we want, so use it to simplify our code.
* depgraph: include pkg.repo in debug outputZac Medico2011-07-091-2/+3
|
* getportageversion: omit implicit -r0 for libcZac Medico2011-07-081-1/+4
|
* Qualify "missed update" message as WARNING.Zac Medico2011-07-081-2/+2
|
* add FEATURES=allow-missing-manifestsBrian Harring2011-07-061-1/+2
| | | | | | | The feature is as it sounds- primarily useful for temporary trees or instances where manifests aren't used. Signed-off-by: Brian Harring <ferringb@gmail.com>
* Show repository in error message about missing USE flags.Arfrever Frehtes Taifersar Arahesis2011-07-031-1/+1
|
* UseFlagDisplay: fix USE_EXPAND_HIDDEN breakageZac Medico2011-06-301-1/+1
|
* Detect/create missing soname symlinks for libs.Zac Medico2011-06-291-0/+10
| | | | | | | This will allow us to safely use the ldconfig -X option for all ldconfig calls, an thereby avoid having ldconfig override our own soname symlink policy which allows preserve-libs to work correctly when libraries are downgraded as discussed in bug 373341.
* pkg_use_display(): Use use.expand and use.expand_hidden attributes.Arfrever Frehtes Taifersar Arahesis2011-06-271-4/+2
|
* Package.use: share identical frozenset instancesZac Medico2011-06-261-4/+12
|
* Package: add use.expand/expand_hidden attributesZac Medico2011-06-262-9/+25
| | | | | This allows the merge list display to account for repository-level USE_EXPAND and USE_EXPAND_HIDDEN settings (see bug #370693).
* use_reduce: less strict for installedZac Medico2011-06-211-4/+10
|
* extract_affecting_use: less strict for installedZac Medico2011-06-212-4/+14
|
* misspell-suggestions: filter the input cpZac Medico2011-06-171-1/+7
| | | | | Obviously, we don't want to consider the input cp as a possible suggestion, as reported in bug 372033.
* expand_set_args: add root SetArg nodes to graphZac Medico2011-06-161-0/+5
| | | | | This prevents get_dep_chain from triggering a KeyError some cases as reported in bug #371767.
* pkg_use_enabled: return early for built pkgsZac Medico2011-06-131-1/+3
| | | | | | | | Built/installed packages have frozen USE settings, so there's no sense in considering them for autounmask USE config changes. They'll simply be rejected by select_package, and an unbuilt ebuild will be selected instead. This will fix bug 371423 by avoiding unnecessary use_reduce calls on the deps of installed packages.
* Scheduler: make --fetchonly skip pkg_pretendZac Medico2011-06-131-3/+4
|