libdnf5.comps
- class libdnf5.comps.CompsSack(*args)
- add_user_environment_excludes(excludes)
Add environments to user excluded environments :type excludes:
EnvironmentQuery:param excludes:: environments to add to excludes Since: 5.2.12.1
- add_user_group_excludes(excludes)
Add groups to user excluded groups :type excludes:
GroupQuery:param excludes:: groups to add to excludes Since: 5.2.12.1
- clear_user_environment_excludes()
Clear user excluded environments Since: 5.2.12.1
- clear_user_group_excludes()
Clear user excluded groups Since: 5.2.12.1
- get_base()
- Return type:
libdnf5::BaseWeakPtr
- Returns:
The Base object to which this object belongs.
Since: 5.2.12.1
- get_config_environment_excludes()
Returns config excluded environments Since: 5.2.12.1
- get_config_group_excludes()
Returns config excluded groups Since: 5.2.12.1
- get_user_environment_excludes()
Returns user excluded environments Since: 5.2.12.1
- get_user_group_excludes()
Returns user excluded groups Since: 5.2.12.1
- get_weak_ptr()
Create WeakPtr to CompsSack Since: 5.2.12.1
- load_config_excludes()
Loads excluded comps from the configuration. Uses the disable_excludes, excludegroups and excludeenvironments configuration options for calculation. Since: 5.2.12.1
- remove_user_environment_excludes(excludes)
Remove environments from user excluded environments :type excludes:
EnvironmentQuery:param excludes:: environments to remove from excludes Since: 5.2.12.1
- remove_user_group_excludes(excludes)
Remove groups from user excluded groups :type excludes:
GroupQuery:param excludes:: groups to remove from excludes Since: 5.2.12.1
- set_user_environment_excludes(excludes)
Resets user excluded environments to a new value :type excludes:
EnvironmentQuery:param excludes:: environments to exclude Since: 5.2.12.1
- set_user_group_excludes(excludes)
Resets user excluded groups to a new value :type excludes:
GroupQuery:param excludes:: groups to exclude Since: 5.2.12.1
- thisown
- class libdnf5.comps.CompsSackWeakPtr(*args)
WeakPtr is a “smart” pointer. It contains a pointer to resource and to guard of resource. WeakPtr pointer can be owner of the resource. However, the resource itself may depend on another resource. WeakPtr registers/unregisters itself at the guard of resource. And the resource guard invalidates the registered WeakPtrs when the resource is unusable (eg. its dependecny was released). Note on thread safety: It is safe to create, access and destroy WeakPtrs in multiple threads simultaneously.
- add_user_environment_excludes(excludes)
Add environments to user excluded environments :type excludes:
EnvironmentQuery:param excludes:: environments to add to excludes Since: 5.2.12.1
- add_user_group_excludes(excludes)
Add groups to user excluded groups :type excludes:
GroupQuery:param excludes:: groups to add to excludes Since: 5.2.12.1
- clear_user_environment_excludes()
Clear user excluded environments Since: 5.2.12.1
- clear_user_group_excludes()
Clear user excluded groups Since: 5.2.12.1
- get()
Returns a pointer to the managed object. Generates exception if object is not valid.
- get_base()
- Return type:
libdnf5::BaseWeakPtr
- Returns:
The Base object to which this object belongs.
Since: 5.2.12.1
- get_config_environment_excludes()
Returns config excluded environments Since: 5.2.12.1
- get_config_group_excludes()
Returns config excluded groups Since: 5.2.12.1
- get_user_environment_excludes()
Returns user excluded environments Since: 5.2.12.1
- get_user_group_excludes()
Returns user excluded groups Since: 5.2.12.1
- get_weak_ptr()
Create WeakPtr to CompsSack Since: 5.2.12.1
- has_same_guard(other)
Checks if the other WeakPtr instance has the same WeakPtrGuard.
- is_valid()
Checks if managed object is valid.
- load_config_excludes()
Loads excluded comps from the configuration. Uses the disable_excludes, excludegroups and excludeenvironments configuration options for calculation. Since: 5.2.12.1
- remove_user_environment_excludes(excludes)
Remove environments from user excluded environments :type excludes:
EnvironmentQuery:param excludes:: environments to remove from excludes Since: 5.2.12.1
- remove_user_group_excludes(excludes)
Remove groups from user excluded groups :type excludes:
GroupQuery:param excludes:: groups to remove from excludes Since: 5.2.12.1
- set_user_environment_excludes(excludes)
Resets user excluded environments to a new value :type excludes:
EnvironmentQuery:param excludes:: environments to exclude Since: 5.2.12.1
- set_user_group_excludes(excludes)
Resets user excluded groups to a new value :type excludes:
GroupQuery:param excludes:: groups to exclude Since: 5.2.12.1
- thisown
- class libdnf5.comps.Environment(*args)
- get_base()
- Return type:
libdnf5::BaseWeakPtr
- Returns:
The Base object to which this object belongs.
Since: 5.2.6
- get_description()
- Return type:
string
- Returns:
The Environment description.
Since: 5.0
- get_environmentid()
- Return type:
string
- Returns:
The Environment id.
Since: 5.0
- get_groups()
- Return type:
std::vector< std::string,std::allocator< std::string > >
- Returns:
std::vector of Group ids belonging to the Environment.
Since: 5.0
- get_installed()
- Return type:
boolean
- Returns:
true if the Environment is installed (belongs to the @System repo).
Since: 5.0
- get_name()
- Return type:
string
- Returns:
The Environment name.
Since: 5.0
- get_optional_groups()
- Return type:
std::vector< std::string,std::allocator< std::string > >
- Returns:
std::vector of optional Group ids belonging to the Environment.
Since: 5.0
- get_order()
- Return type:
string
- Returns:
The Environment display order.
Since: 5.0
- get_order_int()
- Return type:
int
- Returns:
The Environment display order as an integer or INT_MAX if the order is invalid.
Since: 5.2.12.1
- get_reason()
- Return type:
int
- Returns:
Resolved reason why the Environment was installed. Environments can be installed due to multiple reasons, only the most significant is returned.
Since: 5.0
- get_repos()
- Return type:
std::set< std::string,std::less< std::string >,std::allocator< std::string > >
- Returns:
std::set of names of repositories that contain the Environment.
Since: 5.0
- get_translated_description(*args)
- get_translated_name(*args)
- serialize(path)
Serialize the Environment into an xml file :type path: string :param path: Path of the output xml file. :raises: utils::xml::XMLSaveError When saving of the file fails. Since: 5.0
- thisown
- class libdnf5.comps.EnvironmentQuery(*args)
Query is a Set with filtering capabilities.
- filter_environmentid(*args)
- filter_installed(value)
- filter_name(*args)
- get_base()
- Return type:
libdnf5::BaseWeakPtr
- Returns:
The Base object to which this object belongs.
Since: 5.2.6
- thisown
- class libdnf5.comps.Group(*args)
- get_base()
- Return type:
libdnf5::BaseWeakPtr
- Returns:
The Base object to which this object belongs.
Since: 5.2.6
- get_default()
- Return type:
boolean
- Returns:
true if the Group is installed by default.
Since: 5.0
- get_description()
- Return type:
string
- Returns:
The Group description.
Since: 5.0
- get_groupid()
- Return type:
string
- Returns:
The Group id.
Since: 5.0
- get_installed()
- Return type:
boolean
- Returns:
true if the Group is installed (belongs to the @System repo).
Since: 5.0
- get_langonly()
- Return type:
string
- Returns:
The Group langonly.
Since: 5.0
- get_name()
- Return type:
string
- Returns:
The Group name.
Since: 5.0
- get_order()
- Return type:
string
- Returns:
The Group display order.
Since: 5.0
- get_order_int()
- Return type:
int
- Returns:
The Group display order as an integer or INT_MAX if the order is invalid.
Since: 5.2.12.1
- get_packages()
- Return type:
std::vector< libdnf5::comps::Package,std::allocator< libdnf5::comps::Package > >
- Returns:
std::vector of Packages belonging to the Group.
Since: 5.0
- get_packages_of_type(type)
- Return type:
std::vector< libdnf5::comps::Package,std::allocator< libdnf5::comps::Package > >
- Returns:
std::vector of Packages of given type belonging to the Group.
- Parameters:
type (int) – One of the PackageTypes.
Since: 5.0
- get_reason()
- Return type:
int
- Returns:
Resolved reason why the Group was installed. Groups can be installed due to multiple reasons, only the most significant is returned.
Since: 5.0
- get_repos()
- Return type:
std::set< std::string,std::less< std::string >,std::allocator< std::string > >
- Returns:
std::set of names of repositories that contain the Group.
Since: 5.0
- get_translated_description(*args)
- get_translated_name(*args)
- get_uservisible()
- Return type:
boolean
- Returns:
true if the Group is visible to the users.
Since: 5.0
- serialize(path)
Serialize the Group into an xml file. :type path: string :param path: Path of the output xml file. :raises: utils::xml::XMLSaveError When saving of the file fails. Since: 5.0
- thisown
- class libdnf5.comps.GroupQuery(*args)
Query is a Set with filtering capabilities.
- filter_default(value)
- filter_groupid(*args)
- filter_installed(value)
- filter_name(*args)
- filter_package_name(*args)
Filter groups by packages they contain. Keep only groups that contain packages with given names.
- Parameters:
patterns (std::vector< std::string,std::allocator< std::string > >) – A vector of strings (package names) the filter is matched against.
cmp_type – A comparison (match) operator, defaults to QueryCmp::EQ.
Since: 5.12
- filter_uservisible(value)
- get_base()
- Return type:
libdnf5::BaseWeakPtr
- Returns:
The Base object to which this object belongs.
Since: 5.2.6
- thisown
- class libdnf5.comps.Package(*args)
- get_condition()
- Return type:
string
- Returns:
The condition (name of package) under which the package gets installed.
Since: 5.0
- get_name()
- Return type:
string
- Returns:
The Package name.
Since: 5.0
- get_type()
- Return type:
int
- Returns:
The PackageType.
Since: 5.0
- get_type_string()
- Return type:
string
- Returns:
std::string that corresponds to the PackageType.
Since: 5.0
- set_condition(value)
- set_name(value)
- set_type(value)
- thisown
- libdnf5.comps.PackageType_CONDITIONAL
- libdnf5.comps.PackageType_DEFAULT
- libdnf5.comps.PackageType_MANDATORY
- libdnf5.comps.PackageType_OPTIONAL
- class libdnf5.comps.SackQueryEnvironment(*args)
Query is a Set with filtering capabilities.
- filter(*args)
- get()
Get a single object. Raise an exception if none or multiple objects match the query.
- get_data(*args)
- list()
List all objects matching the query.
- thisown
- class libdnf5.comps.SackQueryGroup(*args)
Query is a Set with filtering capabilities.
- filter(*args)
- get()
Get a single object. Raise an exception if none or multiple objects match the query.
- get_data(*args)
- list()
List all objects matching the query.
- thisown
- class libdnf5.comps.SetEnvironment(*args, **kwargs)
Set represents set of objects (e.g. repositories, or groups) and implements set operations such as unions or differences.
- add(*args)
- begin()
- clear()
- contains(obj)
- difference(other)
- empty()
- end()
- find(obj)
- get_data(*args)
- intersection(other)
- is_subset(other)
- is_superset(other)
- remove(obj)
- size()
- swap(other)
- symmetric_difference(other)
- thisown
- update(other)
- libdnf5.comps.SetEnvironment__iter__(self)
- class libdnf5.comps.SetGroup(*args, **kwargs)
Set represents set of objects (e.g. repositories, or groups) and implements set operations such as unions or differences.
- add(*args)
- begin()
- clear()
- contains(obj)
- difference(other)
- empty()
- end()
- find(obj)
- get_data(*args)
- intersection(other)
- is_subset(other)
- is_superset(other)
- remove(obj)
- size()
- swap(other)
- symmetric_difference(other)
- thisown
- update(other)
- libdnf5.comps.SetGroup__iter__(self)
- class libdnf5.comps.SwigPyIterator(*args, **kwargs)
- advance(n)
- copy()
- decr(n=1)
- distance(x)
- equal(x)
- incr(n=1)
- next()
- previous()
- thisown
- value()
- class libdnf5.comps.VectorPackage(*args)
- append(x)
- assign(n, x)
- back()
- begin()
- capacity()
- clear()
- empty()
- end()
- erase(*args)
- front()
- get_allocator()
- insert(*args)
- iterator()
- pop()
- pop_back()
- push_back(x)
- rbegin()
- rend()
- reserve(n)
- size()
- swap(v)
- thisown
- libdnf5.comps.any(flags)
- libdnf5.comps.package_type_from_string(*args)
- libdnf5.comps.package_type_to_string(type)
- libdnf5.comps.package_types_to_strings(types)