Commit 95986ec3 authored by Allan McRae's avatar Allan McRae
Browse files

Handle descriptions in optdepends array



The packages in optdepends can have descriptions appended which need to
be reomved by parsepkgbuild.
e.g. optdepends=('foo: for bar functionality')

Signed-off-by: Allan McRae's avatarAllan McRae <allan@archlinux.org>
parent bce55790
......@@ -61,7 +61,7 @@ if [ -n "\$makedepends" ]; then
fi
if [ -n "\$optdepends" ]; then
echo "%OPTDEPENDS%"
for i in \${optdepends[@]}; do echo \$i; done
for i in \${!optdepends[*]}; do echo \${optdepends[\$i]%:*}; done
echo ""
fi
if [ -n "\$conflicts" ]; then
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment