diff options
-rw-r--r-- | lib/package.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/package.sh b/lib/package.sh index 0c39ca4..2741bd3 100644 --- a/lib/package.sh +++ b/lib/package.sh @@ -186,7 +186,8 @@ ob_get_source_parameter() EOF )" - eval "printf '%s' \"\${_OB_SRCFIELD_${name}}\"" + # TODO: Return error on no such field? + eval "printf '%s' \"\${_OB_SRCFIELD_${name}-}\"" return 0 } @@ -224,7 +225,8 @@ ob_get_binary_parameter() EOF )" - eval "printf '%s' \"\${_OB_BINFIELD_${package}_${name}}\"" + # TODO: Return error on no such field? + eval "printf '%s' \"\${_OB_BINFIELD_${package}_${name}-}\"" return 0 } |