summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2020-07-05 23:34:45 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2020-07-05 23:36:29 (EDT)
commit5de3fdaee0e5df4b29ea11986f27f5ab3670d3b4 (patch)
tree0b05bb0f76bcc58ea8dbaaa3567e649c75e25d5b /src
parentb72afb4bca00fe4148fb3f9f8cea074ec1b8a661 (diff)
ob-genchanges: Sort Binary and drop trailing space
Generate Binary the same way ob-gencontrol does.
Diffstat (limited to 'src')
-rw-r--r--src/ob-genchanges.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ob-genchanges.sh b/src/ob-genchanges.sh
index 56070e5..323f417 100644
--- a/src/ob-genchanges.sh
+++ b/src/ob-genchanges.sh
@@ -31,7 +31,10 @@ write_changes()
printf 'Format: 1.0\n' >&3
printf 'Source: %s\n' "${OPK_SOURCE}" >&3
- printf 'Binary: %s\n' "$(ob_get_binary_packages)" >&3
+ printf 'Binary:' >&3
+ printf '%s\n' $(ob_get_binary_packages) | LC_ALL='C' sort | \
+ xargs printf ' %s' >&3
+ printf '\n' >&3
printf 'Version: %s\n' "${version}" >&3
printf 'Architecture: %s\n' "${arch}" >&3
printf 'Platform: %s\n' "${plat}" >&3