Skip to content

Commit

Permalink
Read variables instead of read from pkg.yaml file.
Browse files Browse the repository at this point in the history
  • Loading branch information
alee-ntap committed Nov 3, 2023
1 parent 8b330f8 commit f6d87d4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bin/build_source
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit f6d87d4

Please sign in to comment.