summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-03-16 16:30:40 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-03-16 16:30:40 (EDT)
commit36c39564862e4aedb54dd95e650d0333911fb926 (patch)
treef7dee1ea8c07f7ca9e20bc92121a079061ba3b13 /lib
parent2edb92c7d6934afc3a3d6c649b0b565129f57fd2 (diff)
_ob_change_2(): Fix to use args instead of global vars
Diffstat (limited to 'lib')
-rw-r--r--lib/package/2.sh20
1 files changed, 14 insertions, 6 deletions
diff --git a/lib/package/2.sh b/lib/package/2.sh
index 88c7f9c..9484ab5 100644
--- a/lib/package/2.sh
+++ b/lib/package/2.sh
@@ -81,12 +81,20 @@ _ob_srcfield_2()
_ob_change_2()
{
- _ob_set_source_parameter Source "${OB_CHANGELOG_SOURCE}"
- _ob_set_source_parameter Version "${OB_CHANGELOG_VERSION}"
- _ob_set_source_parameter Distribution "${OB_CHANGELOG_DISTRIBUTION}"
- _ob_set_source_parameter Changes "${OB_CHANGELOG_CHANGES}"
- _ob_set_source_parameter Uploader "${OB_CHANGELOG_MAINTAINER}"
- _ob_set_source_parameter Date "${OB_CHANGELOG_DATE}"
+ local source="${1}"
+ local version="${2}"
+ local distribution="${3}"
+ local changes="${4}"
+ local maintainer="${5}"
+ local date="${6}"
+ shift 6 || _ob_abort
+
+ _ob_set_source_parameter Source "${source}"
+ _ob_set_source_parameter Version "${version}"
+ _ob_set_source_parameter Distribution "${distribution}"
+ _ob_set_source_parameter Changes "${changes}"
+ _ob_set_source_parameter Uploader "${maintainer}"
+ _ob_set_source_parameter Date "${date}"
# Parse only the first changelog entry.
return 1