summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-06-16 18:49:47 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-06-16 18:50:22 (EDT)
commitde8574b5b027be044fdb58d31fe07eda15436d40 (patch)
tree28038c379f7b5d52e44a34b0874884486d71055e /src
parenta540261b157faa69588f4155a22988d84d2695b6 (diff)
ob-gencontrol: Sort source package Binary field value
This ensures determinism.
Diffstat (limited to 'src')
-rw-r--r--src/ob-gencontrol.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ob-gencontrol.sh b/src/ob-gencontrol.sh
index 175e275..2e14e6a 100644
--- a/src/ob-gencontrol.sh
+++ b/src/ob-gencontrol.sh
@@ -78,7 +78,8 @@ gen_control_src()
# setup_build().
cat >"${binary}.control/control" <<-EOF
Package: ${OPK_SOURCE}
- Binary:$(printf ' %s' ${OPK_PACKAGES})
+ Binary:$(printf '%s\n' ${OPK_PACKAGES} | LC_ALL='C' sort | \
+ xargs printf ' %s')
Version: ${OPK_SOURCE_VERSION}
Architecture: src
Platform: all