portage.sets.dbapi.CategorySet

Single Set Configuration
Multi Set Configuration

This class simply creates a set with all packages in a given category.

Single Set Configuration

In single set configurations this class supports the following options:

  • category: Required. The name of an existing ebuild category which should be used to create the package set.

  • repository: Optional, defaults to porttree. It determines which repository class should be used to create the package set. Valid values for this option are: porttree (normal ebuild repository), vartree (installed package repository) and bintree (local binary package repository).

  • only_visible: Optional, defaults to true. When set to true the set will only include visible packages, when set to false it will also include masked packages. It's currently only effective in combination with the porttree repository.

Multi Set Configuration

In multi set configurations this class supports the following options:

  • categories: Optional, defaults to all categories. If set it must be a space separated list of existing ebuild categories for which package sets should be created.

  • repository: See previous section.

  • only_visible: See previous section.

  • name_pattern: Optional, defaults to $category/*. This describes the naming pattern to be used for creating the sets. It must contain either $category or ${category}, which will be replaced by the category name.