Skip to content

Commit

Permalink
Update srcinfo.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
oklopfer authored May 4, 2024
1 parent 0d64f3c commit ef96250
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions srcinfo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,7 @@ write_all() {
local packagelist
mapfile -t packagelist < packagelist
export -f srcinfo
printf "%s\n" "${packagelist[@]}" | xargs -I {} -P $(nproc) bash -c 'srcinfo "packages/{}/{}.pacscript" "${parsed_distros[@]}" | tee "packages/{}/.SRCINFO" > /dev/null'
unset parsed_distros
printf "%s\n" "${packagelist[@]}" | xargs -I {} -P "$(nproc)" bash -c 'srcinfo "packages/{}/{}.pacscript" "${parsed_distros[@]}" | tee "packages/{}/.SRCINFO" > /dev/null'
}

fetch_distros() {
Expand All @@ -95,7 +94,7 @@ fetch_distros
case ${1} in
"write_all") write_all ;;
*.pacscript) srcinfo "${1}" "${parsed_distros[@]}" ;;
*) echo "please specify a pacscript or use write_all" && exit 1 ;;
*) echo "Please specify a pacscript or use write_all." && exit 1 ;;
esac
unset parsed_distros

Expand Down

0 comments on commit ef96250

Please sign in to comment.