Add manifestdigest field to repository.

Add manifestdigest field to local and remote repositories, create
appropriate index and upgrade schema.
Support glob patterns in pkg-which.

Add support of glob patterns to pkg-which.

Suggested by:	az