Skip to content

Commit

Permalink
fix({build,srcinfo.sh}): missed stuff (pacstall#1137)
Browse files Browse the repository at this point in the history
Co-authored-by: ook37 <[email protected]>
  • Loading branch information
oklopfer and ook37 authored Jun 5, 2024
1 parent 862bde7 commit 37033f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion misc/scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ function makedeb() {

if [[ -n ${arch[*]} ]]; then
# If we have any or all in the arch, then the package works everywhere
if array.contains arch "any"; then
if array.contains arch "any" || array.contains arch "all"; then
deblog "Architecture" "all"
else # If it doesn't but arch[@] exists we should log the current arch as the build arch
deblog "Architecture" "$(dpkg --print-architecture)"
Expand Down
2 changes: 1 addition & 1 deletion misc/scripts/srcinfo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ function srcinfo.parse() {
fi
mapfile -t split_up <<< "${part_two/_array_/$'\n'}"
declare -n addarr="${split_up[0]}"

unset "${split_up[1]}"
# So now we need to check if the thing we're trying to insert is a variable,
# or an array.
if [[ "$(declare -p -- "${part_two}")" == "declare -a "* ]]; then
Expand Down

0 comments on commit 37033f7

Please sign in to comment.