feat(build): update srcinfo file after build

The srcinfo file is essentially a representation of the current build
recipes, hence generate an up to date version by adding it as secondary
build artifact to the build process.

Signed-off-by: Levente Polyak <anthraxx@archlinux.org>
This commit is contained in:
Levente Polyak 2023-12-23 23:49:07 +01:00
parent d210079037
commit ef04960b98
No known key found for this signature in database
GPG Key ID: FC1B547C8D8172C8
1 changed files with 4 additions and 0 deletions

View File

@ -429,6 +429,10 @@ pkgctl_build() {
fi
done
# auto generate .SRCINFO
# shellcheck disable=SC2119
write_srcinfo_file
# release the build
if (( RELEASE )); then
pkgctl_release --repo "${pkgrepo}" "${RELEASE_OPTIONS[@]}"