From ef231a780a497adf255f1d27bde854453616c759 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Fri, 3 Nov 2023 13:32:59 +0100 Subject: [PATCH] Read variables instead of read from pkg.yaml file. --- bin/build_source | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/build_source b/bin/build_source index e6e9fa5..253e5c0 100755 --- a/bin/build_source +++ b/bin/build_source @@ -107,11 +107,11 @@ apply_patches() ( version="$(yq -r '.version // ""' < "$1/pkg.yaml")" [ -n "$version" ] || version="$(dpkg-parsechangelog --show-field Version)" - email="$(yq -r '.email // ""' < "$1/pkg.yaml")" - name="$(yq -r '.name // ""' < "$1/pkg.yaml")" - distribution="$(yq -r '.distribution // ""' < "$1/pkg.yaml")" + email="$EMAIL" + name="$NAME" + distribution="$DIST" version_suffix="$(yq -r '.version_suffix // ""' < "$1/pkg.yaml")" - message="$(yq -r '.message // ""' < "$1/pkg.yaml")" + message="$MESSAGE" DEBEMAIL="$email" DEBFULLNAME="$name" dch --newversion "$version$version_suffix" --distribution "$distribution" --force-distribution -- "$message"