diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/control.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/control.sh b/src/control.sh index f9b1e08..38ba841 100644 --- a/src/control.sh +++ b/src/control.sh @@ -18,7 +18,7 @@ # along with the ProteanOS Development Kit. If not, see # <http://www.gnu.org/licenses/>. -parse_control_error() +_parse_control_error() { local file="${1}" local line_nr="${2}" @@ -75,7 +75,7 @@ parse_control() para_req_fields="$(printf "%s$(get_msg \ 'list_item_separator')" \ ${para_req_fields})" - parse_control_error \ + _parse_control_error \ "${file}" "${line_nr}" \ 'control_missing_fields' \ "${para_req_fields}" @@ -100,7 +100,7 @@ parse_control() value="${line#*:}" value="${value# }" if [ "x${name}" = 'x' -o "x${name}" = "x${line}" ]; then - parse_control_error "${file}" "${line_nr}" \ + _parse_control_error "${file}" "${line_nr}" \ 'control_bad_nv' continue fi @@ -112,7 +112,7 @@ parse_control() if [ "x${got_fields%${LF}${name}${LF}*}" != \ "x${got_fields}" ]; then # Duplicate field. - parse_control_error "${file}" "${line_nr}" \ + _parse_control_error "${file}" "${line_nr}" \ 'control_duplicate_field' \ "${name}" else @@ -123,7 +123,7 @@ parse_control() in_paragraph='true' if [ "x${name}" = 'x' ]; then # Expecting a "Name: Value" line. - parse_control_error "${file}" "${line_nr}" \ + _parse_control_error "${file}" "${line_nr}" \ 'control_found_continuation' continue fi |