summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-10-25 23:50:29 (EDT)
committer P. J. McDermott <pjm@nac.net>2012-10-25 23:50:29 (EDT)
commit3bc9429dad01922a6d8198657d521fca6ba350df (patch)
tree3609d383c14c79111047586b64630baf7747a193 /lib
parentb5d7ce68421606c5e38287bc42e7ac1c142dd66c (diff)
Support comments in control files.
Diffstat (limited to 'lib')
-rw-r--r--lib/control.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/control.sh b/lib/control.sh
index 196d952..04a0cba 100644
--- a/lib/control.sh
+++ b/lib/control.sh
@@ -59,6 +59,9 @@ ob_parse_control()
if [ -z "$(echo ${_obpco_line})" ]; then
_ob_parse_control_error "${_obpco_file}" "${_obpco_line_nr}" \
'control_empty_line'
+ elif [ "${_obpco_line#\#}" != "${_obpco_line}" ]; then
+ # Comment.
+ :
elif [ "${_obpco_line# }" = "${_obpco_line}" ]; then
# "Name: Value" line.
if [ -n "${_obpco_name}" ]; then