mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-23 00:08:50 -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:
parent
0e96532096
commit
c71fe7db42
@ -920,31 +920,15 @@ write_pkginfo() {
|
||||
echo "force = true"
|
||||
fi
|
||||
|
||||
local it
|
||||
for it in "${license[@]}"; do
|
||||
echo "license = $it"
|
||||
done
|
||||
for it in "${replaces[@]}"; do
|
||||
echo "replaces = $it"
|
||||
done
|
||||
for it in "${groups[@]}"; do
|
||||
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
|
||||
[[ $license ]] && printf "license = %s\n" "${license[@]}"
|
||||
[[ $replaces ]] && printf "replaces = %s\n" "${replaces[@]}"
|
||||
[[ $groups ]] && printf "group = %s\n" "${groups[@]}"
|
||||
[[ $depends ]] && printf "depend = %s\n" "${depends[@]}"
|
||||
[[ $optdepend ]] && printf "optdepend = %s\n" "${optdepends[@]}"
|
||||
[[ $conflict ]] && printf "conflict = %s\n" "${conflicts[@]}"
|
||||
[[ $provides ]] && printf "provides = %s\n" "${provides[@]}"
|
||||
[[ $backup ]] && printf "backup = %s\n" "${backup[@]}"
|
||||
|
||||
for it in "${packaging_options[@]}"; do
|
||||
local ret="$(check_option $it)"
|
||||
if [[ $ret != "?" ]]; then
|
||||
|
Loading…
Reference in New Issue
Block a user