Class: Paludis::Repository
A Repository provides a representation of a physical repository to a PackageDatabase.
Public Instance Methods
[String] → MetadataKey or Nil
The named metadata key.
category_names → Array
category_names {|category_name| block } → Nil
Returns the names of all categories, either as an Array or as the parameters to a block.
category_names_containing_package(package) → Array
category_names_containing_package(package) {|category_name| block } → Nil
Returns the names of all categories containing the given package, either as an Array or as the parameters to a block.
each_metadata {|key| block } → Nil
Our metadata.
environment_variable_interface → self or Nil
Returns self if the repository supports the interface, otherwise Nil.
get_environment_variable(package_id, environment_variable) → String
Query an environment variable.
has_category_named?(category_name) → true or false
Do we have a category with the given name?
has_package_named?(package_name) → true or false
Do we have a package with the given name?
name → String
Returns our name.
package_ids(qualified_package_name) → Array
package_ids(qualified_package_name) {|package_id| block } → Qnil
Returns the package IDs for the given package, either as an Array, or as the parameters to a block.
package_names(category) → Array
package_names(category) {|qualified_package_name| block } → Nil
Returns the names of all packages within the given category, either as an Array, or as the parameters to a block.
provides_interface → self or Nil
Returns self if the repository supports the interface, otherwise Nil.
some_ids_might_support_action(action_test) → true or false
Might some of our IDs support a particular action?
virtuals_interface → self or Nil
Returns self if the repository supports the interface, otherwise Nil.