diff options
Diffstat (limited to 'src')
-rwxr-xr-x | src/abslibre-tools/librerelease | 4 | ||||
-rw-r--r-- | src/lib/conf.sh.3.ronn | 16 |
2 files changed, 7 insertions, 13 deletions
diff --git a/src/abslibre-tools/librerelease b/src/abslibre-tools/librerelease index 466ace4..54d7b7f 100755 --- a/src/abslibre-tools/librerelease +++ b/src/abslibre-tools/librerelease @@ -82,10 +82,6 @@ create_signature() { } sign_packages() { - if [[ -z "${GPG_AGENT_INFO}" ]]; then - warning "It's better to have \`%s\` running to sign packages in batches" 'gpg-agent --daemon' - fi - for file in $(find "${WORKDIR}/staging/" -type f -not \( -iname '*.sig' -o -name '*.lock' \) ); do if [[ -f "${file}.sig" ]]; then msg2 "File signature found, verifying..." diff --git a/src/lib/conf.sh.3.ronn b/src/lib/conf.sh.3.ronn index bad271d..1b26a06 100644 --- a/src/lib/conf.sh.3.ronn +++ b/src/lib/conf.sh.3.ronn @@ -10,9 +10,6 @@ conf.sh(3) -- easy loading of configuration files `conf.sh` is a Bash(1) library to easily load various configuration files related to Arch Linux/Parabola(7) and libretools(7). -I recommend reading the source yourself--it is mostly -self-explanatory, and is shorter than this document. - ### VARIABLES When loading configuration files in a program run with `sudo`(8), it @@ -56,23 +53,24 @@ The routines you will likely actually use are: variables. * `check_vars` <SLUG> <VARS>...: Checks to see if all of <VARS> are defined. If any of them - aren't, it prints a message to configure them in the - configuration files for <SLUG>, and returns with a non-zero + aren't, it prints a message telling the user to configure them in + the configuration files for <SLUG>, and returns with a non-zero status. * `get_var` <SLUG> <VAR> <DEFAULT>: - If <VAR> is set in the configuration for <SLUG>, print it's + If <VAR> is set in the configuration for <SLUG>, print its value, considering environmental variables. If it is not set, return <DEFAULT>. This does NOT work for array variables. * `set_var` <SLUG> <VAR> <VALUE>: Set the variable <VAR> equal to <VALUE> in the configuration file - for <SLUG> of highest precedence that already exists, and is + for <SLUG> of highest precedence that already exists and is writable. If no files fit this description, the routine does nothing and returns a non-zero exit status. This does NOT work for array variables. There are two more routines the above routines use internally that are -used internally by . You are unlikely to use them directly, but they -might be useful for debugging, or at least describing behavior. +used internally by by the above routines. You are unlikely to use +them directly, but they might be useful for debugging, or at least +describing behavior. * `list_files` <SLUG>: Lists (newline-separated) the configuration files that must be |