[pacman-dev] [PATCH 0/3] Add "Usage" option for repos

Allan McRae allan at archlinux.org
Sun Aug 4 21:17:13 EDT 2013


On 05/08/13 03:25, Dave Reisner wrote:
> I've been using these patches for a while now (see the author date on the
> actual patches) and would like to present them again for feedback. I've
> found it tremendously useful (particularly as an Arch packager) to be able
> to keep an eye on other repos like [staging] without actually having them
> enabled.
> 

I like these patches, and I believe I had the last version of them on my
working branch for a while.   I have just one comment for some discussion:


> +*Usage =* ...::
> +	Set the usage level for this repository. This option takes a list of
tokens
> +	which must be at least one of the following:
> +		*Sync*;;
> +			Enables refreshes for this repository.
> +		*Search*;;
> +			Enables searching for this repository.
> +		*Install*;;
> +			Enables installation of packages from this repository during a
'\--sync'
> +			operation.
> +		*Upgrade*;;
> +			Allows this repository to be a valid source of packages when
performing
> +			a '\--sysupgrade'.
> +		*All*;;
> +			Enables all of the above features for the repository. This is the
default
> +			if not specified.

I think the description here needs to be clearer.   Sync allows use to
list the contents of the repo with -Sl?

Search, Install and Upgrade obviously imply Sync.  Does Install only
allow explicit installation - i.e.  "-S repo/foo", or is "-S foo" enough?

Is Upgrade different from All?  I would assume it implies Install (just
by description).


So here is my suggestion.  Can we put these in an order where the higher
up ones imply everything below?

Sync < Search < Install < Upgrade == All

Allan



More information about the pacman-dev mailing list