RepoQuery

class libdnf5.repo.RepoQuery(*args)

Query is a Set with filtering capabilities.

filter_enabled(enabled)

Filter repos by their enabled state.

Parameters:

enabled (boolean) – A boolean value the filter is matched against.

Since: 5.0

filter_expired(expired)

Filter repos by their expired state.

Parameters:

expired (boolean) – A boolean value the filter is matched against.

Since: 5.0

filter_id(*args)

Overload 1: Filter repos by their id.

Parameters:
  • pattern (string) – A string the filter is matched against.

  • cmp (int, optional) – A comparison (match) operator, defaults to QueryCmp::EQ.

Since: 5.0


Overload 2: Filter repos by their id.

Parameters:
  • patterns (std::vector< std::string,std::allocator< std::string > >) – A vector of strings the filter is matched against.

  • cmp (int, optional) – A comparison (match) operator, defaults to QueryCmp::EQ.

Since: 5.0


Overload 3: Filter repos by their id.

Parameters:
  • patterns (std::vector< std::string,std::allocator< std::string > >) – A vector of strings the filter is matched against.

  • cmp – A comparison (match) operator, defaults to QueryCmp::EQ.

Since: 5.0

filter_local(local)

Filter repositories by whether they are local

Parameters:

local (boolean) – true returns local repos, false remote repos.

Since: 5.0

filter_name(*args)

Overload 1: Filter repos by their name.

Parameters:
  • pattern (string) – A string the filter is matched against.

  • cmp (int, optional) – A comparison (match) operator, defaults to QueryCmp::EQ.

Since: 5.0


Overload 2: Filter repos by their name.

Parameters:
  • patterns (std::vector< std::string,std::allocator< std::string > >) – A vector of strings the filter is matched against.

  • cmp (int, optional) – A comparison (match) operator, defaults to QueryCmp::EQ.

Since: 5.0


Overload 3: Filter repos by their name.

Parameters:
  • patterns (std::vector< std::string,std::allocator< std::string > >) – A vector of strings the filter is matched against.

  • cmp – A comparison (match) operator, defaults to QueryCmp::EQ.

Since: 5.0

filter_type(*args)

Filter repos by their type.

Parameters:
  • type (int) – A type the filter is matched against.

  • cmp (int, optional) – A comparison (match) operator, defaults to QueryCmp::EQ.

Since: 5.0

get_base()
Return type:

libdnf5::BaseWeakPtr

Returns:

Weak pointer to the Base object.

Since: 5.0

thisown