aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2021-02-16 14:51:50 -0700
committerSean Whitton <spwhitton@spwhitton.name>2021-02-16 14:51:58 -0700
commite3c98fef8267ffcb62f29a24eab6033ce84011aa (patch)
tree3c5aa710da7a39927ab58f79575ab6b1e6469c23 /doc
parent093dda153d48e41d2646222f58e95f6e163696ac (diff)
downloadconsfigurator-e3c98fef8267ffcb62f29a24eab6033ce84011aa.tar.gz
more specification of the two prereq data functions
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 'doc')
-rw-r--r--doc/guide.rst14
1 files changed, 9 insertions, 5 deletions
diff --git a/doc/guide.rst b/doc/guide.rst
index 2552420..d8bf1b3 100644
--- a/doc/guide.rst
+++ b/doc/guide.rst
@@ -128,15 +128,19 @@ Representing prerequisite data
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
A piece of prerequisite data is represented in your configuration by two
-functions. The first will return either a string of the prerequisite data
-itself, or a path to a file containing the data. The second returns the
+functions. The second will return either a string of the prerequisite data
+itself, or a path to a file containing the data. The first returns the
latest version number of the data -- i.e., the version of the data that the
-first function would return if executed.
+second function would return if executed.
-Consfigurator will call the second function to find out if it needs to call
+Consfigurator will call the first function to find out if it needs to call
the first rather than just using its cache. The first function should return
nil if it can't obtain the prerequisite data on this host, perhaps because it
-can't decrypt the store.
+can't decrypt the store. A return value of t represents a request to
+Consfigurator to call the second function rather than relying on any cached
+values, bypassing the versioning system.
+
+Versions are compared using ``dpkg --compare-versions``.
Security issues
~~~~~~~~~~~~~~~