[pacman-dev] [PATCH] makepkg: Add --noextractonly (-E) to also download/verify source files

Allan McRae allan at archlinux.org
Fri Feb 22 22:17:17 EST 2013


On 23/02/13 11:16, jjacky wrote:
> 
> 
> On 02/23/13 01:31, Allan McRae wrote:
>> On 23/02/13 00:03, Olivier Brunel wrote:
>>> Because --noextract also implies to not download/verify source files, it wasn't
>>> possible to simply do just that, without either extracting and/or building. This
>>> option allows just that (and is therefore mostly useful with --nobuild).
>>>
>>
>> I really do not like the option name.  Does --noextractonly mean it
>> still builds?  etc...
> 
> That would be yes, unless --nobuild was used. The option name was meant
> as "no extract only, as opposed to --noextract which also implies no
> download & no verify"
> But I get your point, yes.
> 
>> How about naming what you are trying to do - i.e. "--verify".
> 
> You mean it like a --verify-only, that would imply both --noextract
> (except with still download & verify of course) and --nobuild (and then,
> using either of those alongside --verify-only would do nothing/be ignored) ?
> 
> Yeah, that might be better. I think --verifyonly might be better than
> just --verify though (because the latter can sound like without it
> there's no verify done, which obviously isn't the case) ?
> 
> Also, could -E still be used as short option, or should it just not have
> one ?
> 

So..., --verifyonly would imply that it only does verifying and no
downloading.

Lets call it --verifysource.  No need for a short option.

We can avoid people thinking this option must be specified to do the
source verification with a good description. e.g.

--verifysource    Download (if needed) and verify sources only.



More information about the pacman-dev mailing list