aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAndré Erdmann <dywi@mailerd.de>2013-04-23 11:34:04 +0200
committerAndré Erdmann <dywi@mailerd.de>2013-04-23 11:34:04 +0200
commitef32760f4053d3fce73fb0e11e9bdf6e960c75ad (patch)
treec010cdc95dfd171037c08b160d8e135bd72cfa90 /doc
parentroverlay/main: apply_rules command (diff)
downloadR_overlay-ef32760f4053d3fce73fb0e11e9bdf6e960c75ad.tar.gz
R_overlay-ef32760f4053d3fce73fb0e11e9bdf6e960c75ad.tar.bz2
R_overlay-ef32760f4053d3fce73fb0e11e9bdf6e960c75ad.zip
doc/rst: package rules
Added the following: * package rules 'trace' action * roverlay.py 'apply_rules' command * Note about apply identical evar actions more than once
Diffstat (limited to 'doc')
-rw-r--r--doc/rst/usage.rst44
1 files changed, 28 insertions, 16 deletions
diff --git a/doc/rst/usage.rst b/doc/rst/usage.rst
index bd541f8..34ce7ac 100644
--- a/doc/rst/usage.rst
+++ b/doc/rst/usage.rst
@@ -57,14 +57,14 @@ This document is targeted at
`Configuration Reference`_ and `Field Definition Config`_.
There is another chapter that is only interesting for testing, the
- `Dependency Resolution Console`_ (9), which can be used to interactively
+ `Dependency Resolution Console`_ (10), which can be used to interactively
test dependency rules.
* *roverlay* code maintainers who want to know **how roverlay works** for
code improvements etc.
- The most important chapter is `Implementation Overview`_ (10) which has
- references to other chapters (4-8) where required.
+ The most important chapter is `Implementation Overview`_ (11) which has
+ references to other chapters (4-9) where required.
Expected prior knowlegde:
@@ -467,6 +467,15 @@ depres_console, depres
More information can be found in the `DepRes Console`_ section.
+apply_rules
+ Applies the package rules to all available packages and reports what has
+ been done, either to stdout or to ``--dump-file <file>``.
+
+ Meant for testing.
+
+ This command implies the **sync** command unless the *--nosync* option
+ is specified.
+
----------------------------
Providing a package mirror
----------------------------
@@ -1469,6 +1478,21 @@ control *where*) and the number of values they accept:
| keywords | ebuild variables | >= 1 | set per-package |
| | | | ``KEYWORDS`` |
+----------------+------------------+-------------+------------------------+
+ | trace | package rules | none | marks a package as |
+ | | | | modified |
+ + + +-------------+------------------------+
+ | | | 1 | adds the stored string |
+ | | | | to a package's |
+ | | | | *modified* variable |
+ | | | | whenever this action |
+ | | | | is applied |
+ +----------------+------------------+-------------+------------------------+
+
+
+.. Note::
+
+ Applying the same (non-incremental) ebuild variable action more than once
+ is possible, but only the last one will have an effect on ebuild creation.
Extended Action Block Syntax
@@ -1529,12 +1553,7 @@ if the package is from BIOC/experiment, and otherwise to ``-x86 amd64``:
* package_name ~ x86_64
* package_name ~ amd64
ACTION:
- MATCH:
- NOR
- * repo == BIOC/experiment
- ACTION:
- keywords "-x86 amd64"
- END;
+ keywords "-x86 amd64"
MATCH:
repo == BIOC/experiment
ACTION:
@@ -1543,13 +1562,6 @@ if the package is from BIOC/experiment, and otherwise to ``-x86 amd64``:
END;
-.. Caution::
-
- Applying the same action more than once per package is not supported.
- That is why the example above uses another nested rule with a *NOR*-match
- instead of simply specifying the desired action.
- This limitation will be removed soon.
-
=========================
Configuration Reference
=========================