summaryrefslogtreecommitdiffstats
path: root/lib/changelog.sh
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-07-26 02:37:29 (EDT)
committer P. J. McDermott <pjm@nac.net>2012-07-26 02:37:29 (EDT)
commit1ea5cf50bccd1c5ae7707b524071dbb2623e9b4c (patch)
tree3db6abf96bf1b41ab2f68071f25c532e20f00f46 /lib/changelog.sh
parent129aee4288fe239b8c46bd283977ac1667feac37 (diff)
Print only the first changelog entry.
This will eventually be configurable as in dpkg-parsechangelog.
Diffstat (limited to 'lib/changelog.sh')
-rw-r--r--lib/changelog.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/changelog.sh b/lib/changelog.sh
index 81e3332..5733353 100644
--- a/lib/changelog.sh
+++ b/lib/changelog.sh
@@ -111,8 +111,9 @@ ${_line}"
elif [ -n "${OH_CHANGELOG_SOURCE}" ]; then
OH_CHANGELOG_MAINTAINER="${_maintainer}"
OH_CHANGELOG_DATE="${_date}"
- "${_cb}"
_entries=$(($_entries + 1))
+ "${_cb}"
+ [ ${?} -ne 0 ] && return ${_entries}
fi
_expect=NEXT_OR_EOF
_blank_lines=