Skip to content

Commit

Permalink
fix(fetch-sources.sh): fix typo in makedep check (pacstall#1186)
Browse files Browse the repository at this point in the history
Co-authored-by: ook37 <[email protected]>
  • Loading branch information
oklopfer and ook37 authored Jul 8, 2024
1 parent 223c79e commit 175d5fe
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions misc/scripts/fetch-sources.sh
Original file line number Diff line number Diff line change
Expand Up @@ -638,6 +638,7 @@ function is_compatible_arch() {
}

function check_builddepends() {
{ ignore_stack=false; set -o pipefail; trap stacktrace ERR RETURN; }
local build_dep="${1}" type="${2}" realbuild just_build just_arch
realbuild="${build_dep}"
if dep_const.is_pipe "${build_dep}"; then
Expand All @@ -655,8 +656,8 @@ function check_builddepends() {
fi
else
if [[ -z "$(apt-cache search --no-generate --names-only "^${just_build[0]}\$" 2> /dev/null || apt-cache search --names-only "^${just_build[0]}\$")" ]]; then
if [[ -z "$(aptitude search --quiet --disable-columns "?exact-name(${just_build[0]})?architecture(${just_build})" -F "%p")" ]]; then
if [[ -z "$(aptitude search --quiet --disable-columns "?provides(^${just_build[0]}$)?architecture(${just_build})" -F "%p")" ]]; then
if [[ -z "$(aptitude search --quiet --disable-columns "?exact-name(${just_build[0]})?architecture(${just_arch})" -F "%p")" ]]; then
if [[ -z "$(aptitude search --quiet --disable-columns "?provides(^${just_build[0]}$)?architecture(${just_arch})" -F "%p")" ]]; then
fancy_message sub "${CYAN}${realbuild}${NC} ${RED}${NC} [required]"
echo "${realbuild}" >> "${PACDIR}-missing-${type}-${pacname}"
return 0
Expand Down

0 comments on commit 175d5fe

Please sign in to comment.