fm.repo_file module

class fm.repo_file.RepoFile(name, url, root='/')[source]

Bases: object

Class representing DNF Repo file.

create()[source]

Creates the repository file on file-system.

Raises:fm.exceptions.Error – If the repo file cannot be created.
get_filename()[source]

Returns full path to the repository file describing this module.

Parameters:root (string) – Full path to root file-system.
Returns:Full path to repository file.
Return type:string
get_repo_name()[source]
is_created()[source]

Returns True if the repo file is created.

Returns:True if the repo file is created.
Return type:bool
remove()[source]

Removes the repository file from file-system

Raises:fm.exceptions.Error – If the repo file cannot be removed.