diff options
author | Allan McRae <allan@archlinux.org> | 2011-09-24 15:08:21 +1000 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-09-26 16:02:19 -0500 |
commit | dd82b8d09f554d709f92fcdc7f873cb551b2d205 (patch) | |
tree | ce9842fa3fbd049d147dd095eeba4886cdb1422e | |
parent | 6adf502f0d0e684c67d7498057083958becf8b19 (diff) | |
download | pacman-dd82b8d09f554d709f92fcdc7f873cb551b2d205.tar.xz |
makepkg: normalize whitespace for optdepends in .PKGINFO
Many PKGBUILDs use formatting whitespace when specifying optdepends.
This is removed when adding a package to a repo-database so the
output of "pacman -Si <package>" and "pacman -Qip <package file>"
becomes inconsistent. Instead, do the adjustment when creating
the .PKGINFO file.
Signed-off-by: Allan McRae <allan@archlinux.org>
Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r-- | scripts/makepkg.sh.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index a0b03753..2703177b 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -1134,7 +1134,7 @@ write_pkginfo() { [[ $license ]] && printf "license = %s\n" "${license[@]}" [[ $replaces ]] && printf "replaces = %s\n" "${replaces[@]}" [[ $groups ]] && printf "group = %s\n" "${groups[@]}" - [[ $optdepends ]] && printf "optdepend = %s\n" "${optdepends[@]}" + [[ $optdepends ]] && printf "optdepend = %s\n" "${optdepends[@]//+([[:space:]])/ }" [[ $conflicts ]] && printf "conflict = %s\n" "${conflicts[@]}" [[ $backup ]] && printf "backup = %s\n" "${backup[@]}" |