From 95a9b30c37392a0a9065be697ee5e8923129a92e Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sat, 13 Apr 2019 22:52:26 -0400 Subject: include_changes(): Exit on missing changes fields --- (limited to 'src') diff --git a/src/include.sh b/src/include.sh index 1da053b..72d14f7 100644 --- a/src/include.sh +++ b/src/include.sh @@ -75,8 +75,10 @@ include_changes() local pkg= local pool_file= - parse_control "${changes}" _include_changes_field \ - "${_INCLUDE_CHANGES_FIELDS}" '' + if ! parse_control "${changes}" _include_changes_field \ + "${_INCLUDE_CHANGES_FIELDS}" ''; then + error 2 "$(get_msg 'include_invalid_changes')" "${changes}" + fi if [ "x${_include_format}" != 'x1.0' ]; then error 2 "$(get_msg 'include_unknown_changes_format')" \ "${changes}" "${_include_format}" -- cgit v0.9.1