summaryrefslogtreecommitdiffstats
path: root/lib/package.sh
diff options
context:
space:
mode:
Diffstat (limited to 'lib/package.sh')
-rw-r--r--lib/package.sh15
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}"