Fix repo.sh for single packages per kernel

pull/253/head
Jan Houben 7 years ago
parent f0167ce4e3
commit 8b9d524cc5
No known key found for this signature in database
GPG Key ID: 6866AADB974DD983
  1. 7
      repo.sh

@ -119,9 +119,14 @@ repo_package_list() {
package_list=()
local pkgs=()
if [[ ${#pkg_list[@]} -eq 1 ]]; then
local pkg_list_find=${pkg_list[0]}
else
local pkg_list_find="{$(printf '%s,' ${pkg_list[@]} | cut -d ',' -f 1-${#pkg_list[@]})}"
fi
# Get packages from the backup directory
path="packages/${kernel_name}/{$(printf '%s,' ${pkg_list[@]} | cut -d ',' -f 1-${#pkg_list[@]})}/"
path="packages/${kernel_name}/${pkg_list_find}/"
if [[ ! -z ${kernel_version_full_pkgver} ]]; then
debug "kernel_version_full_pkgver: ${kernel_version_full_pkgver}"
fcmd="find ${path} -iname '*${kernel_version_full_pkgver}-${spl_pkgrel}*.pkg.tar.xz' -o -iname '*${kernel_version_full_pkgver}-${zfs_pkgrel}*.pkg.tar.xz' "

Loading…
Cancel
Save