diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2020-06-17 14:07:47 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2020-06-17 14:08:31 (EDT) |
commit | 40502c667e1207023e81de17ae378de908ac0632 (patch) | |
tree | d7c4da35e9bdb9818d6ebaec40899264444c9cb5 /src | |
parent | bc6d37a583b931fb9378560a9c1b55784c622ac9 (diff) |
ob-genchanges: Use "Section" field when present
Diffstat (limited to 'src')
-rw-r--r-- | src/ob-genchanges.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ob-genchanges.sh b/src/ob-genchanges.sh index b427bc3..8290de6 100644 --- a/src/ob-genchanges.sh +++ b/src/ob-genchanges.sh @@ -76,6 +76,7 @@ write_files_bin() local pkg= local arch= local plat= + local sect= local file= printf 'Files:\n' >&3 @@ -84,10 +85,12 @@ write_files_bin() [ x"${arch}" != x'all' ] && arch="${OPK_HOST_ARCH}" plat="$(ob_get_binary_parameter "${pkg}" 'Platform')" [ x"${plat}" != x'all' ] && plat="${OPK_HOST_PLAT}" + sect="$(ob_get_binary_parameter "${pkg}" 'Section')" + [ x"${sect}" = x'' ] && sect='base' file="${pkg}_${OPK_BINARY_VERSION}_${arch}_${plat}.opk" printf ' %s %s %s\n' \ "$(wc -c "../../${file}" | cut -d ' ' -f 1)" \ - 'base' "${file}" >&3 + "${sect}" "${file}" >&3 done return 0 |