Esempio n. 1
0
def step_drop_repository(context, repo):
    """
    Deletes the repository's config file from /etc/yum.repos.d/ (inside installroot).
    """
    assert repo in context.dnf.repos, 'Repository "%s" was never used.' % repo

    delete_file(
        os.path.join(context.dnf.installroot, "etc/yum.repos.d/",
                     repo + ".repo"))
    get_repo_info(context, repo).active = False
Esempio n. 2
0
def step_delete_file_with_globs(context, filepath):
    for path in glob.glob(prepend_installroot(context, filepath)):
        delete_file(path)
Esempio n. 3
0
def step_delete_file(context, filepath):
    full_path = prepend_installroot(context, filepath)
    delete_file(full_path)