Skip to content

Commit e29d487

Browse files
committed
[fix] : FIxed package group check
1 parent 72b8e2d commit e29d487

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

build.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -557,11 +557,12 @@ make_packages_repo() {
557557
readarray -t _pkglist < <("${tools_dir}/pkglist.sh" "${pkglist_args[@]}")
558558

559559
#pacman -Sy --config "${build_pacman_conf}"
560-
readarray -t installedpkg < <(pacman-conf -c "${build_pacman_conf}" -l | xargs -I{} pacman -Sql --config "${build_pacman_conf}" --color=never {})
560+
readarray -t repopkgs < <(pacman-conf -c "${build_pacman_conf}" -l | xargs -I{} pacman -Sql --config "${build_pacman_conf}" --color=never {} && pacman -Sg)
561+
561562
local _pkg
562563
for _pkg in "${_pkglist[@]}"; do
563564
msg_info "Checking ${_pkg}..."
564-
if printf "%s\n" "${installedpkg[@]}" | grep -qx "${_pkg}"; then
565+
if printf "%s\n" "${repopkgs[@]}" | grep -qx "${_pkg}"; then
565566
_pkglist_install+=("${_pkg}")
566567
else
567568
msg_info "${_pkg} was not found. Install it with yay from AUR"

0 commit comments

Comments
 (0)