summaryrefslogtreecommitdiffstats
path: root/pym/_emerge/actions.py
Commit message (Collapse)AuthorAgeFilesLines
...
* Enable PORTAGE_GRPNAME/USERNAME in make.conf.Zac Medico2011-12-081-0/+1
| | | | | | | | This is handy for prefix installs, since it allows these variables to be set in make.conf rather than having them hardcoded. Eventually, the corresponding portage.data constants may be deprecated in favor of config attributes, since it's conceivable that multiple configurations with different constants could be used simultaneously.
* action_sync: fix git_sync_timestamps KeyErrorZac Medico2011-12-061-8/+15
| | | | This fixes the case where $PORTDIR doesn't exist prior to sync.
* action_depclean: fix return codeZac Medico2011-12-021-4/+9
| | | | | | The fixes some cases where emerge.log would show that depclean was unsuccessful when it was really successful but there was nothing to remove.
* emerge --quiet-build: don't set PORTAGE_QUIETZac Medico2011-11-161-1/+1
| | | | | | | The PORTAGE_QUIET controls lots of stuff that really should only be controlled by --quiet, especially now that --quiet-build is enabled by default. For example, PORTAGE_QUIET supresses the successful checksum display that is produced by emerge --fetchonly.
* Allow repository dependencies in command line arguments for --config and ↵Arfrever Frehtes Taifersar Arahesis2011-11-071-1/+1
| | | | --info actions.
* git_sync_timestamps: validation_chf == mtimeZac Medico2011-10-291-2/+1
|
* Use dbapi._known_keys more.Zac Medico2011-10-291-2/+1
|
* action_metadata: clean up src entry validationZac Medico2011-10-291-34/+10
| | | | | This eliminates a bunch of redundant eclasses code that we handle with template.validate_entry() instead.
* EbuildMetadataPhase: use /dev/null for stdinZac Medico2011-10-291-6/+0
|
* actions.py: remove unused variablesZac Medico2011-10-291-9/+1
|
* action_metadata: use auxdbkeys to compare entriesZac Medico2011-10-291-7/+1
| | | | | This borrows the approach that egencache uses since commit 0e120da008c9d0d41c9372c81145c6e153028a6d.
* emerge --metadata: support md5-dictZac Medico2011-10-291-4/+32
| | | | | | This adds support to action_metadata() for use of arbitrary validation methods, which were introduced in commit 2ed1cb53cc4158af08c22d466b15b9a9a7767212.
* git_sync_timestamps: fix breakageZac Medico2011-10-281-9/+18
| | | | | This has been broken since metadbmodule support was removed in commit d4ea29bf6a3ce35d49e0f54f9173e3a6e42da2d6.
* Use EROOT to validate path arguments.Zac Medico2011-10-281-1/+1
|
* Add public news functions for bug #388233.Zac Medico2011-10-261-67/+11
| | | | | count_unread_news(portdb, vardb, repos=None, update=True) display_news_notifications(news_counts)
* Use EROOT instead of ROOT for keys everywhere.Zac Medico2011-10-251-51/+54
| | | | | | | | | | It makes more sense to use EROOT instead of ROOT for keys in mappings like portage.db, since it allows for multiple prefixes to exist simultaneously within the same map without having a key collision. This affects all portageq commands which take a <root> parameter, since that parameter now corresponds to EROOT instead of ROOT. None of this makes any difference for non-prefix users, since EROOT and ROOT are identical when EPREFIX is empty.
* create_trees: save target_root for later useZac Medico2011-10-251-7/+1
|
* emerge --metadata: fix empty INHERITED handlingZac Medico2011-10-141-3/+3
| | | | | | | | Since changes to eclass validation code in commit 2ed1cb53cc4158af08c22d466b15b9a9a7767212, validation of cache for packages with empty INHERITED metadata has been broken due to failure to distinguish between None and empty dict return values from eclass.cache.validate_and_rewrite_cache().
* emerge --metadata: fix breakageZac Medico2011-10-141-0/+4
| | | | | | The hunk that got removed from action_metadata in commit d4ea29bf6a3ce35d49e0f54f9173e3a6e42da2d6 is actually needed when FEATURES=metadata-transfer is enabled.
* cache: rewrite to support arbitrary validation methodBrian Harring2011-10-141-4/+6
| | | | | | | | | | Specifically, the cache can use any portage supported checksum method, or use the standard mtime approach. In addition, support controlling whether or not paths are stored, and generally try to restore some of the centralization/encapsulation that was in place originally. (cherry picked from commit bc1aed614fb588f0ade5bcb5d1265a8db0f8d247) Change-Id: Ic38057e7dbb15063c64a93c99e66e113a7d4c70e
* cache.util: drop completely dead module/codeBrian Harring2011-10-141-21/+5
| | | | | | | Looks of it, this code was copied/mangled into action_metadata; the noise/callbacks in use don't do anything, so drop them, the dead code, and clean up the exception handling to reflect the new reality (cherry picked from commit 320890fadbedf678119ac06d458ed6086075431e)
* layout.conf: make the pregenerated cache format controllableBrian Harring2011-10-131-8/+0
| | | | | | | | | | | Controllable via 'cache-format', currently it supports only one cache; 'pms', and defaults to it. If an unsupported cache-format is specified, the cache is disabled. If pms is specified and metadata/cache directory doesn't exist, the cache is disabled. Finally, this rips out the best module support for locally overriding the cache format used for pregenerated caches; this functionality made zero sense (upstream determines the format, we use what is available).
* Test --prune with virtual slots.Zac Medico2011-09-181-1/+2
|
* 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.
* Respect package.env buildpkg FEATURES settings.Zac Medico2011-08-301-0/+3
| | | | This will fix bug #318897.
* python3.2 fixes: ResourceWarning: unclosed fileZac Medico2011-08-261-1/+2
|
* 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.
* LinkageMapELF: add getOwners() method and use itZac Medico2011-07-221-1/+9
| | | | | | 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.
* Make emerge --noreplace identical to --selective.Zac Medico2011-07-191-4/+4
| | | | | | 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.
* Use portage.subprocess_getstatusoutput() more.Zac Medico2011-07-121-5/+2
|
* unmerge: reject USE conditionals in argumentsZac Medico2011-07-121-2/+12
|
* getportageversion: omit implicit -r0 for libcZac Medico2011-07-081-1/+4
|
* Use bool(digraph) instead of empty()/is_empty().Zac Medico2011-06-021-1/+1
|
* depclean: warn for each unmatched argumentZac Medico2011-05-271-1/+4
| | | | This output is similar to that produced by unmerge().
* Fix grammar in previous commit.Zac Medico2011-05-201-1/+1
|
* depclean: adjust failure message wrt --with-bdepsZac Medico2011-05-201-9/+21
| | | | | We need to be more explicit about using --with-bdeps=y, since this subtlety often leads to confusion.
* preserve-libs: preserve during uninstallZac Medico2011-05-141-1/+2
| | | | | | This will fix bug #286714. The emerge --depclean-lib-check option will now be ignored when FEATURES=preserve-libs is enabled, since any libraries that have consumers will simply be preserved.
* display_news_notification: don't populate virtsZac Medico2011-05-081-4/+0
| | | | | This typically isn't useful anymore, since Gentoo has stopped using old-style virtuals.
* unmerge: use expand_new_virt for sys pkg warningsZac Medico2011-05-081-62/+2
|
* Cleanup preserved lib locking in portage.David James2011-05-061-7/+0
| | | | | | | | | | | | This change makes preserved lib modification atomic, and prepares us for narrowing the scope of the merge lock. BUG=chromium-os:14983 TEST=Ran test suite and some example emerges. Change-Id: I39abb6a5ec72be3274e508ef807ac1d9e69db1a8 Review URL: http://gerrit.chromium.org/gerrit/417
* action_info: eliminate duplicate info_pkgs matchZac Medico2011-04-291-10/+21
| | | | | | | | | | Currently, sys-kernel/linux-headers is matched by both a plain sys-kernel/linux-headers atom and by the virtual/os-headers new-style virtual. For backward compatibility, we're going to have duplicates like this for at least a few months (see bug #364673, comment #5). Therefore, automatically eliminate duplicates in the display. Entries that include virtual provider info are preferred over those that do not.
* expand_new_virt: don't traverse blockersZac Medico2011-04-271-0/+6
|
* expand_new_virt: validate EAPI, IUSE and USEZac Medico2011-04-271-4/+25
|
* expand_new_virt: eliminate cpv_getkeyZac Medico2011-04-271-2/+1
|
* expand_new_virt: use stack for recursionZac Medico2011-04-261-24/+25
|
* Fix a typo.Arfrever Frehtes Taifersar Arahesis2011-04-261-1/+1
|
* emerge --info: support new-style virtualsZac Medico2011-04-261-23/+62
| | | | This will fix bug #364673.
* unmerge: fix PORTAGE_BACKGROUND logicZac Medico2011-03-261-0/+7
|
* chk_updated_cfg_files: fix whitespace in messageZac Medico2011-03-201-1/+2
| | | | Thanks to Dennis Schridde in bug #359681.
* action_deselect: expand cat against world atomsZac Medico2011-03-011-12/+24
|