xbps-src: rework show-pkg-var to reduce effort
This commit is contained in:
parent
d1ad03a3c4
commit
a23934ed94
1 changed files with 15 additions and 22 deletions
37
xbps-src
37
xbps-src
|
@ -830,28 +830,21 @@ case "$XBPS_TARGET" in
|
|||
${sub_name}_package
|
||||
fi
|
||||
done
|
||||
while IFS= read -r pkg_var; do
|
||||
print_var=
|
||||
case "${pkg_var}" in
|
||||
bootstrap) print_var="$bootstrap ";;
|
||||
broken) print_var="$broken ";;
|
||||
depends) print_var="$depends ";;
|
||||
hostmakedepends) print_var="$hostmakedepends ";;
|
||||
makedepends) print_var="$makedepends ";;
|
||||
nocross) print_var="$nocross ";;
|
||||
pkgname) print_var="$pkgname ";;
|
||||
restricted) print_var="$restricted ";;
|
||||
revision) print_var="$revision ";;
|
||||
subpackages) print_var="$subpackages ";;
|
||||
version) print_var="$version ";;
|
||||
provides) print_var="$provides ";;
|
||||
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
|
||||
printf "archs: %s\n\n" "$archs"
|
||||
printf "bootstrap: %s\n\n" "$bootstrap"
|
||||
printf "broken: %s\n\n" "$broken"
|
||||
printf "depends: %s\n\n" "$depends"
|
||||
printf "hostmakedepends: %s\n\n" "$hostmakedepends"
|
||||
printf "makedepends: %s\n\n" "$makedepends"
|
||||
printf "nocross: %s\n\n" "$nocross"
|
||||
printf "pkgname: %s\n\n" "$pkgname"
|
||||
printf "restricted: %s\n\n" "$restricted"
|
||||
printf "revision: %s\n\n" "$revision"
|
||||
printf "subpackages: %s\n\n" "$subpackages"
|
||||
printf "version: %s\n\n" "$version"
|
||||
printf "provides: %s\n\n" "$provides"
|
||||
printf "lib32disabled: %s\n\n" "$lib32disabled"
|
||||
printf "nodebug: %s\n\n" "$nodebug"
|
||||
;;
|
||||
show-options)
|
||||
read_pkg ignore-problems
|
||||
|
|
Loading…
Reference in a new issue