diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-03-13 20:52:43 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-03-13 20:52:43 (EDT) |
commit | c4d516e6b4c79502450a008da681dcea365e51d3 (patch) | |
tree | 6d19e4db7bce54dc0b6957bffaf7bc1b7d242e04 | |
parent | e1e5ae15188307d55f10439431b47db0ba2b0e7d (diff) |
ob_get_*_parameter(): Document
-rw-r--r-- | lib/package.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/package.sh b/lib/package.sh index c684cc5..44fd858 100644 --- a/lib/package.sh +++ b/lib/package.sh @@ -141,6 +141,13 @@ ob_get_binary_packages() return 0 } +## @brief Get a source package field value +## @details \fBob_get_source_parameter\fP gets the value of a source package +## field. +## @operand name The name of the field. +## @return Returns 0 on success or 1 if \fIname\fP is invalid. +## @stdout Prints the source package field value. +## @pure yes This function has no side effects. ob_get_source_parameter() { local name="${1}" @@ -160,6 +167,14 @@ ob_get_source_parameter() return 0 } +## @brief Get a binary package field value +## @details \fBob_get_binary_parameter\fP gets the value of a binary package +## field. +## @operand package The name of the binary package. +## @operand name The name of the field. +## @return Returns 0 on success or 1 if \fIname\fP is invalid. +## @stdout Prints the binary package field value. +## @pure yes This function has no side effects. ob_get_binary_parameter() { local package="${1}" |