[pacman-dev] Splitting packages in makepkg

Miklos Vajna vmiklos at frugalware.org
Tue Jun 17 17:35:43 EDT 2008

On Tue, Jun 17, 2008 at 10:20:59PM +1000, Allan McRae <mcrae_allan at hotmail.com> wrote:
> Just another thought.  Why do we even need the subpkg array.  Why not:  
> "pkgname=foo" for single packages and "pkgname=('foo' 'foo-bar' 
> 'foo-doc')" for split packages?  I would have to check that you can do 
> that in bash...

pkgname=("foo") is equivalent to pkgname="foo" in bash, at least

${pkgname[0]} will work for both, ${#pkgname[@]} will report 1 for both,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://archlinux.org/pipermail/pacman-dev/attachments/20080617/510388fe/attachment.pgp>

More information about the pacman-dev mailing list