From acfa9033519e86de7a18421fa52f1cfa635a1669 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Thu, 15 Aug 2013 16:02:33 -0400 Subject: include_changes(): Check format field. --- (limited to 'lib/include.sh') 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}" ;; -- cgit v0.9.1