[pacman-dev] [PATCH] makepkg: detect incorrect unsage of >= in provides

Allan McRae allan at archlinux.org
Thu Jan 1 21:38:30 EST 2009


Xavier wrote:
> On Thu, Jan 1, 2009 at 7:16 PM, Allan McRae <allan at archlinux.org> wrote:
>   
>> Using >= in the provides array is stupid so make it cause an error.
>> Fixes FS#12540.
>>
>> Also, use bash substitution rather than spawning new processes where
>> possible in the error checking.  Move split package detection to a
>> better position.
>>
>>     
>
> Only checking for >= looks strange to me, what about all the others :
> < , >, <=, etc..
> Maybe we could simply prevent < and > in the provision, using the same
> bash substitution than for -.

I figure providing < or <= is sane.  I will add the check for >. 

I can't use bash substitution because this is an array (unless I loop 
there).

Allan




More information about the pacman-dev mailing list