diff options
-rw-r--r-- | lib/deps.sh | 3 | ||||
-rw-r--r-- | lib/metadata.sh | 6 | ||||
-rw-r--r-- | lib/package/2.sh | 6 |
3 files changed, 10 insertions, 5 deletions
diff --git a/lib/deps.sh b/lib/deps.sh index ceb3723..fb25501 100644 --- a/lib/deps.sh +++ b/lib/deps.sh @@ -84,7 +84,8 @@ ob_parse_dep() ;; q) archqual_var="${OPTARG}" - if ! _ob_validate_var_name "${archqual_var}"; then + if ! _ob_validate_var_name "${archqual_var}" + then _ob_abort fi ;; diff --git a/lib/metadata.sh b/lib/metadata.sh index 5d35436..5aecf4a 100644 --- a/lib/metadata.sh +++ b/lib/metadata.sh @@ -90,13 +90,15 @@ ob_parse_version() case "${opt}" in u) upstreamver_var="${OPTARG}" - if ! _ob_validate_var_name "${upstreamver_var}"; then + if ! _ob_validate_var_name "${upstreamver_var}" + then _ob_abort fi ;; d) distrev_var="${OPTARG}" - if ! _ob_validate_var_name "${distrev_var}"; then + if ! _ob_validate_var_name "${distrev_var}" + then _ob_abort fi ;; diff --git a/lib/package/2.sh b/lib/package/2.sh index c113dba..1e68f40 100644 --- a/lib/package/2.sh +++ b/lib/package/2.sh @@ -28,13 +28,15 @@ _ob_parse_package_metadata_2() local pkg= ob_parse_control "${_OB_PACKAGE_DIR}/control" _ob_srcfield_2 '' \ - "${_OB_SOURCE_FIELDS_REQUIRED_2}" "${_OB_SOURCE_FIELDS_OPTIONAL_2}" + "${_OB_SOURCE_FIELDS_REQUIRED_2}" \ + "${_OB_SOURCE_FIELDS_OPTIONAL_2}" ob_parse_changelog "${_OB_PACKAGE_DIR}/changelog" _ob_change_2 for pkg in $(ob_get_binary_packages); do ob_parse_control "${_OB_PACKAGE_DIR}/${pkg}.pkg/control" \ _ob_binfield_2 "${pkg}" \ - "${_OB_BINARY_FIELDS_REQUIRED_2}" "${_OB_BINARY_FIELDS_OPTIONAL_2}" + "${_OB_BINARY_FIELDS_REQUIRED_2}" \ + "${_OB_BINARY_FIELDS_OPTIONAL_2}" done return 0 |