[pacman-dev] [PATCH] makepkg - add check for valid options in PKGBUILD

Allan McRae mcrae_allan at hotmail.com
Tue May 13 06:25:34 EDT 2008


Dan McGee wrote:
> On Mon, May 12, 2008 at 8:51 PM, Allan McRae <mcrae_allan at hotmail.com> wrote:
>   
>>
>>  +known_options=('strip' 'docs' 'libtool' 'emptydirs' 'zipman' 'ccache' 'distcc' 'makeflags' 'force')
>>     
> Perhaps we should throw this somewhere at the top of the script, since
> it is a constant? I'm thinking somewhere right after pkgdir & srcdir.
> In additoin, we can probably mark with either readonly or readonly -a
> as we don't want any scripts mucking with it.
>   

I had to lookup what the -a flag actually did, but we do need it because 
known_options is an array.

New version of the patch on its way.

Allan








More information about the pacman-dev mailing list