Skip to content

Commit 398e5ee

Browse files
committed
[fix] : Fixed pkgbuild dependency resolution
1 parent c4990a8 commit 398e5ee

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

system/pkgbuild.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ readarray -t pkgbuild_dirs < <(ls "${pkgbuild_dir}" 2> /dev/null)
9999
if (( "${#pkgbuild_dirs[@]}" != 0 )); then
100100
for _dir in "${pkgbuild_dirs[@]}"; do
101101
cd "${_dir}"
102-
readarray depends < <(source "${pkgbuild_dir}/${_dir}/PKGBUILD"; echo "${depends[@]}")
103-
readarray makedepends < <(source "${pkgbuild_dir}/${_dir}/PKGBUILD"; echo "${makedepends[@]}")
102+
readarray depends < <(source "${pkgbuild_dir}/${_dir}/PKGBUILD"; printf "%s\n" "${depends[@]}")
103+
readarray makedepends < <(source "${pkgbuild_dir}/${_dir}/PKGBUILD"; printf "%s\n" "${makedepends[@]}")
104104
if (( ${#depends[@]} + ${#makedepends[@]} != 0 )); then
105105
for _pkg in "${depends[@]}" "${makedepends[@]}"; do
106106
if pacman -Ssq "${_pkg}" | grep -x "${_pkg}" 1> /dev/null; then

0 commit comments

Comments
 (0)