summaryrefslogtreecommitdiffstats
path: root/pym/_emerge/actions.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix extended atom match for =* operator.Zac Medico2012-07-181-7/+21
|
* Enable /etc/portage/sets for stable, bug #384061.Zac Medico2012-06-221-9/+21
|
* getportageversion: handle repo: in parent fileZac Medico2012-06-221-0/+15
|
* action_build: always display_problemsZac Medico2012-06-211-0/+10
|
* Don't write or trust cache for unsupported EAPIs.Zac Medico2012-05-101-8/+0
| | | | | | Since we're supposed to be able to efficiently obtain the EAPI from _parse_eapi_ebuild_head, we don't need to write or trust cache entries for unsupported EAPIs.
* Parse EAPI with pattern from PMS section 7.3.1.Zac Medico2012-05-091-6/+2
| | | | | | | | This implements the specification that was approved in Gentoo's council meeting on May 8, 2012 (see bug #402167). The parse-eapi-ebuild-head FEATURES setting is now enabled by default, and causes non-conformant ebuilds to be treated as invalid. This behavior will soon become enabled unconditionally.
* Scheduler: optimize action_uninstallZac Medico2012-04-051-1/+1
|
* Localize config update messages, bug #409835.Greg Turner2012-03-271-7/+9
|
* unmerge: fix return code for bug #409647Zac Medico2012-03-251-7/+3
|
* Exit status 128 + SIGINT for --ask 'no' answer.Zac Medico2012-03-251-5/+5
| | | | This will fix bug #409647.
* emerge --sync: use yellow for portage update msgZac Medico2012-03-251-4/+5
|
* Map emerge --buildpkg=n to FEATURES=-buildpkg.Zac Medico2012-03-211-1/+4
| | | | This will fix bug #409085.
* Use Popen to avoid unnecessary shell.Zac Medico2012-03-081-8/+45
|
* action_build: return 1 for "no" --ask answerZac Medico2012-02-291-1/+1
|
* Add --human-readable to rsync opts for bug 269410Zac Medico2012-01-121-0/+1
|
* Fix some warnings found by pylint.Arfrever Frehtes Taifersar Arahesis2011-12-181-11/+8
|
* load_emerge_config: change order of code backZac Medico2011-12-101-7/+6
| | | | | A couple of recent commits touched this function, and code got moved around unnecessarily.
* config: init data/output modules in constructorZac Medico2011-12-101-4/+0
| | | | | The first constructed config object initializes these modules, and subsequent calls to the _init() functions have no effect.
* actions.py: fix grammar in commentZac Medico2011-12-101-1/+1
|
* Use portage.shutil for safer unicode handling.Zac Medico2011-12-101-1/+1
|
* Delete portage.dbapi.porttree._repo_info class and _repo_info attribute ofArfrever Frehtes Taifersar Arahesis2011-12-091-1/+1
| | | | | portage.dbapi.porttree.portdbapi objects. Migrate consumers to repositories attribute of portage.dbapi.porttree.portdbapi objects.
* load_emerge_config: init portage.data earlierZac Medico2011-12-081-7/+10
| | | | | The portage_uid initialization here must to happend before the _init_dirs() calls.
* 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.