summaryrefslogtreecommitdiffstats
path: root/src/control.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/control.sh')
-rw-r--r--src/control.sh38
1 files changed, 19 insertions, 19 deletions
diff --git a/src/control.sh b/src/control.sh
index f4d1498..f9b1e08 100644
--- a/src/control.sh
+++ b/src/control.sh
@@ -18,6 +18,25 @@
# along with the ProteanOS Development Kit. If not, see
# <http://www.gnu.org/licenses/>.
+parse_control_error()
+{
+ local file="${1}"
+ local line_nr="${2}"
+ local msg_id="${3}"
+ shift 1
+ local file_info=
+
+ if [ ${line_nr} -eq 0 ]; then
+ file_info="$(printf '%20s:' "${file}")"
+ else
+ file_info="$(printf '%20s(l%d):' "${file}" "${line_nr}")"
+ fi
+
+ warn "${file_info} $(get_msg "${msg_id}")" "${@}"
+
+ return 0
+}
+
parse_control()
{
local field_cb="${2}"
@@ -128,22 +147,3 @@ parse_control()
return 0
}
-
-parse_control_error()
-{
- local file="${1}"
- local line_nr="${2}"
- local msg_id="${3}"
- shift 1
- local file_info=
-
- if [ ${line_nr} -eq 0 ]; then
- file_info="$(printf '%20s:' "${file}")"
- else
- file_info="$(printf '%20s(l%d):' "${file}" "${line_nr}")"
- fi
-
- warn "${file_info} $(get_msg "${msg_id}")" "${@}"
-
- return 0
-}