1
0
mirror of https://github.com/moparisthebest/pacman synced 2025-01-10 21:38:19 -05:00

makepkg: use printf when writing pkginfo

Signed-off-by: Andres P <aepd87@gmail.com>
Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Andres P 2010-05-23 09:02:57 -04:30 committed by Allan McRae
parent 0e96532096
commit c71fe7db42

View File

@ -920,31 +920,15 @@ write_pkginfo() {
echo "force = true" echo "force = true"
fi fi
local it [[ $license ]] && printf "license = %s\n" "${license[@]}"
for it in "${license[@]}"; do [[ $replaces ]] && printf "replaces = %s\n" "${replaces[@]}"
echo "license = $it" [[ $groups ]] && printf "group = %s\n" "${groups[@]}"
done [[ $depends ]] && printf "depend = %s\n" "${depends[@]}"
for it in "${replaces[@]}"; do [[ $optdepend ]] && printf "optdepend = %s\n" "${optdepends[@]}"
echo "replaces = $it" [[ $conflict ]] && printf "conflict = %s\n" "${conflicts[@]}"
done [[ $provides ]] && printf "provides = %s\n" "${provides[@]}"
for it in "${groups[@]}"; do [[ $backup ]] && printf "backup = %s\n" "${backup[@]}"
echo "group = $it"
done
for it in "${depends[@]}"; do
echo "depend = $it"
done
for it in "${optdepends[@]}"; do
echo "optdepend = $it"
done
for it in "${conflicts[@]}"; do
echo "conflict = $it"
done
for it in "${provides[@]}"; do
echo "provides = $it"
done
for it in "${backup[@]}"; do
echo "backup = $it"
done
for it in "${packaging_options[@]}"; do for it in "${packaging_options[@]}"; do
local ret="$(check_option $it)" local ret="$(check_option $it)"
if [[ $ret != "?" ]]; then if [[ $ret != "?" ]]; then