xbps-src: rework show-pkg-var to reduce effort
This commit is contained in:
parent
d1ad03a3c4
commit
a23934ed94
37
xbps-src
37
xbps-src
|
@ -830,28 +830,21 @@ case "$XBPS_TARGET" in
|
||||||
${sub_name}_package
|
${sub_name}_package
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
while IFS= read -r pkg_var; do
|
printf "archs: %s\n\n" "$archs"
|
||||||
print_var=
|
printf "bootstrap: %s\n\n" "$bootstrap"
|
||||||
case "${pkg_var}" in
|
printf "broken: %s\n\n" "$broken"
|
||||||
bootstrap) print_var="$bootstrap ";;
|
printf "depends: %s\n\n" "$depends"
|
||||||
broken) print_var="$broken ";;
|
printf "hostmakedepends: %s\n\n" "$hostmakedepends"
|
||||||
depends) print_var="$depends ";;
|
printf "makedepends: %s\n\n" "$makedepends"
|
||||||
hostmakedepends) print_var="$hostmakedepends ";;
|
printf "nocross: %s\n\n" "$nocross"
|
||||||
makedepends) print_var="$makedepends ";;
|
printf "pkgname: %s\n\n" "$pkgname"
|
||||||
nocross) print_var="$nocross ";;
|
printf "restricted: %s\n\n" "$restricted"
|
||||||
pkgname) print_var="$pkgname ";;
|
printf "revision: %s\n\n" "$revision"
|
||||||
restricted) print_var="$restricted ";;
|
printf "subpackages: %s\n\n" "$subpackages"
|
||||||
revision) print_var="$revision ";;
|
printf "version: %s\n\n" "$version"
|
||||||
subpackages) print_var="$subpackages ";;
|
printf "provides: %s\n\n" "$provides"
|
||||||
version) print_var="$version ";;
|
printf "lib32disabled: %s\n\n" "$lib32disabled"
|
||||||
provides) print_var="$provides ";;
|
printf "nodebug: %s\n\n" "$nodebug"
|
||||||
lib32disabled) print_var="$lib32disabled ";;
|
|
||||||
nodebug) print_var="$nodebug ";;
|
|
||||||
esac # the space at the end of each is essential for unset vars
|
|
||||||
if [ -n "$print_var" ]; then
|
|
||||||
printf "%s\n" "$(printf "${print_var% }" | tr -t '\n\r' ' ')"
|
|
||||||
fi # The trailing space gets stripped before printing anyway
|
|
||||||
done
|
|
||||||
;;
|
;;
|
||||||
show-options)
|
show-options)
|
||||||
read_pkg ignore-problems
|
read_pkg ignore-problems
|
||||||
|
|
Loading…
Reference in New Issue