From 36c39564862e4aedb54dd95e650d0333911fb926 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sat, 16 Mar 2019 16:30:40 -0400 Subject: _ob_change_2(): Fix to use args instead of global vars --- (limited to 'lib/package') 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 -- cgit v0.9.1