Reset 'replaces' between builds (#280)

pull/331/head
Jan Houben 6 years ago
parent 19c2768399
commit 8952494f4a
No known key found for this signature in database
GPG Key ID: 6866AADB974DD983
  1. 3
      build.sh
  2. 12
      lib.sh
  3. 2
      src/kernels/_utils.sh
  4. 2
      src/kernels/linux.sh

@ -367,6 +367,7 @@ for (( i = 0; i < ${#modes[@]}; i++ )); do
msg "${update_funcs[@]}"
for func in "${update_funcs[@]}"; do
debug "Evaluating '${func}'"
reset_variables
"${func}"
msg "${pkg_list[@]}"
for pkg in "${pkg_list[@]}"; do
@ -384,7 +385,7 @@ for (( i = 0; i < ${#modes[@]}; i++ )); do
debug "Skipping '${func}' (non stable)"
continue
fi
reset_variables
"${func}"
if have_command "update"; then
msg "Updating PKGBUILDs for kernel '${kernel_name}'"

@ -395,9 +395,7 @@ kernel_version_full_no_hyphen() {
echo $(kernel_version_full ${1} | sed s/-/./g)
}
# from makepkg
source_safe() {
# reset variables
reset_variables() {
kernel_version_full_pkgver=""
kernel_version_full=""
kernel_version=""
@ -427,7 +425,15 @@ source_safe() {
spl_replaces=""
zfs_replaces=""
zfs_set_commit=""
spl_replaces=''
zfs_replaces=''
spl_utils_replaces=''
zfs_utils_replaces=''
}
# from makepkg
source_safe() {
reset_variables
export script_dir mode kernel_name
shopt -u extglob
if ! source "$@"; then

@ -13,7 +13,7 @@ zfs_git_url="https://github.com/zfsonlinux/zfs.git"
spl_git_url="https://github.com/zfsonlinux/spl.git"
# Version for RC packages
pkgrel_rc="1"
pkgrel_rc="2"
header="\
# Maintainer: Jan Houben <jan@nexttrex.de>

@ -14,7 +14,7 @@ zfs_git_url="https://github.com/zfsonlinux/zfs.git"
spl_git_url="https://github.com/zfsonlinux/spl.git"
# Version for RC packages
pkgrel_rc="1"
pkgrel_rc="2"
header="\
# Maintainer: Jan Houben <jan@nexttrex.de>

Loading…
Cancel
Save