We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c16a9e8 commit 72b8e2dCopy full SHA for 72b8e2d
1 file changed
build.sh
@@ -556,10 +556,12 @@ make_packages_repo() {
556
msg_debug "pkglist.sh ${pkglist_args[*]}"
557
readarray -t _pkglist < <("${tools_dir}/pkglist.sh" "${pkglist_args[@]}")
558
559
+ #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 {})
561
local _pkg
562
for _pkg in "${_pkglist[@]}"; do
563
msg_info "Checking ${_pkg}..."
- if pacman -Ssq "${_pkg}" 2> /dev/null 1> /dev/null; then
564
+ if printf "%s\n" "${installedpkg[@]}" | grep -qx "${_pkg}"; then
565
_pkglist_install+=("${_pkg}")
566
else
567
msg_info "${_pkg} was not found. Install it with yay from AUR"
0 commit comments