From fe7224668d67a02ec7fe6aefad8303533d4f0ddd Mon Sep 17 00:00:00 2001 From: Jesus Alvarez Date: Sun, 16 Jul 2017 21:51:27 -0700 Subject: [PATCH] repo.sh: Don't use source packages that don't exist --- repo.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/repo.sh b/repo.sh index 4e9edcb..8816828 100755 --- a/repo.sh +++ b/repo.sh @@ -150,10 +150,15 @@ repo_package_list() { debug "Using: pkgname: ${name} pkgver: ${vers} pkgpath: ${pkg} pkgdest: ${repo_target}/${arch}" package_list+=("${name};${vers};${pkg};${repo_target}/${arch}") - package_src_list+=("packages/${kernel_name}/${name}/${name}-${vers}.src.tar.gz") + + pkgsrc="packages/${kernel_name}/${name}/${name}-${vers}.src.tar.gz" + if [[ -f "${pkgsrc}" ]]; then + package_src_list+=("${pkgsrc}") + fi done debug_print_array "package_list" ${package_list[@]} + debug_print_array "package_src_list" ${package_src_list[@]} }