Skip to content

Commit 04f6a2d

Browse files
authored
Merge pull request #417 from Googulator/fix-default-buildscript
Fix the default build script used by "build <package name>"
2 parents 458a65b + 177b58c commit 04f6a2d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

steps/helpers.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,12 @@ bin_preseed() {
113113
# that can be overridden on per package basis in the build script.
114114
# build takes two arguments:
115115
# 1) name-version of the package
116-
# 2) optionally specify build script. Default is name-version.sh
116+
# 2) optionally specify build script. Default is pass$((revision+1)).sh
117117
# 3) optionally specify directory to cd into
118118
build() {
119119
pkg=$1
120-
script_name=${2:-${pkg}.sh}
120+
get_revision "${pkg}"
121+
script_name=${2:-pass$((revision+1)).sh}
121122
dirname=${3:-${pkg}}
122123

123124
# shellcheck disable=SC2015
@@ -176,7 +177,6 @@ build() {
176177
call $build_stage
177178

178179
echo "${pkg}: creating package."
179-
get_revision "${pkg}"
180180
cd "${DESTDIR}"
181181
src_pkg
182182

0 commit comments

Comments
 (0)