|
|
|
@ -123,6 +123,7 @@ repo_package_list() { |
|
|
|
|
vers=$(package_version_from_path ${pkg}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ! [[ ${name} =~ .*-git ]]; then |
|
|
|
|
# Version match check: arch: x86_64 name: spl-utils-linux-git vers: 0.7.0_rc1_r0_g4fd75d3_4.7.2_1-4 vers_match: 0.6.5.8.*4.7.2_1-4 |
|
|
|
|
debug "spl_pkgver: ${spl_pkgver}" |
|
|
|
|
debug "zfs_pkgver: ${zfs_pkgver}" |
|
|
|
@ -136,17 +137,9 @@ repo_package_list() { |
|
|
|
|
|
|
|
|
|
if ! [[ ${vers} =~ ^${match} ]] ; then |
|
|
|
|
debug "Version mismatch!" |
|
|
|
|
if [[ ${name} =~ .*-git ]]; then |
|
|
|
|
error "Attempting to add Git packages that are out of date!" |
|
|
|
|
error "package version from filesystem: ${vers}" |
|
|
|
|
error "calculated version from git: ${match}" |
|
|
|
|
haz_error=1 |
|
|
|
|
if [[ ${dry_run} -ne 1 ]]; then |
|
|
|
|
exit 1 |
|
|
|
|
fi |
|
|
|
|
fi |
|
|
|
|
continue |
|
|
|
|
fi |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
debug "Using: pkgname: ${name} pkgver: ${vers} pkgpath: ${pkg} pkgdest: ${repo_target}/${arch}" |
|
|
|
|
package_list+=("${name};${vers};${pkg};${repo_target}/${arch}") |
|
|
|
@ -295,10 +288,6 @@ export spl_pkgver="" |
|
|
|
|
|
|
|
|
|
for func in ${update_funcs[@]}; do |
|
|
|
|
debug "Evaluating '${func}'" |
|
|
|
|
if [[ ${func} =~ .*_git_.* ]]; then |
|
|
|
|
# Update the local zfs/spl git repositories, this will change the calculated pkgver version of the PKGBUILD. |
|
|
|
|
commands+=("update") |
|
|
|
|
fi |
|
|
|
|
"${func}" |
|
|
|
|
repo_package_list |
|
|
|
|
repo_package_backup |
|
|
|
|