diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/include.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/include.sh b/lib/include.sh index 0621fc6..77b9ce3 100644 --- a/lib/include.sh +++ b/lib/include.sh @@ -25,6 +25,7 @@ use output _INCLUDE_CHANGES_FIELDS='Format Source Binary Version Architecture Platform Distribution Maintainer Changed-By Date Description Changes Files' +_include_format= _include_source= _include_version= _include_distribution= @@ -51,6 +52,10 @@ include_changes() parse_control "${changes}" _include_changes_field \ "${_INCLUDE_CHANGES_FIELDS}" '' + if [ "x${_include_format}" != 'x1.0' ]; then + error 2 "$(get_msg 'include_unknown_changes_format')" \ + "${changes}" "${_include_format}" + fi chan="${conf_incoming_channel}" dist="${_include_distribution}" source="${_include_source}" @@ -130,6 +135,9 @@ _include_changes_field() local value="${2}" case "${name}" in + 'Format') + _include_format="${value}" + ;; 'Source') _include_source="${value}" ;; |