summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
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 ${?}
}