summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-10-10 20:33:44 (EDT)
committer P. J. McDermott <pjm@nac.net>2012-10-10 20:33:44 (EDT)
commitddc623c0752963273b5cf52bf11d6ad000d5d194 (patch)
treebf03c36f3bf63eac50084601cc6c6a9a19d820ff /lib
parent87c211f97d0a69a0421e2d9a44aaf17f5e2ca2c7 (diff)
Return 0 on success in ob_parse_changelog().
In packages with more than 124 changes, ob_parse_changelog() would return an error value.
Diffstat (limited to 'lib')
-rw-r--r--lib/changelog.sh8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/changelog.sh b/lib/changelog.sh
index 54bed15..670ba95 100644
--- a/lib/changelog.sh
+++ b/lib/changelog.sh
@@ -35,7 +35,7 @@ ob_parse_changelog()
{
_ob_local _obpch_file _obpch_entry_cb \
_obpch_line_nr _obpch_line _obpch_line_ \
- _obpch_expect _obpch_blank_lines _obpch_entries \
+ _obpch_expect _obpch_blank_lines \
_obpch_source _obpch_distribution _obpch_version \
_obpch_maintainer _obpch_date
@@ -51,7 +51,6 @@ ob_parse_changelog()
_obpch_line_nr=0
_obpch_expect='first_heading'
- _obpch_entries=0
while IFS= read _obpch_line; do
_obpch_line_nr=$(($_obpch_line_nr + 1))
@@ -124,10 +123,9 @@ ${_obpch_line}"
elif [ -n "${OB_CHANGELOG_SOURCE}" ]; then
OB_CHANGELOG_MAINTAINER="${_obpch_maintainer}"
OB_CHANGELOG_DATE="${_obpch_date}"
- _obpch_entries=$(($_obpch_entries + 1))
"${_obpch_entry_cb}"
if [ ${?} -ne 0 ]; then
- _ob_return ${_obpch_entries}
+ _ob_return 0
return ${?}
fi
fi
@@ -160,7 +158,7 @@ ${_obpch_blank_lines}${_obpch_line}"
"$(_ob_get_changelog_expect_str "${_obpch_expect}")"
fi
- _ob_return ${_obpch_entries}
+ _ob_return 0
return ${?}
}