Esempio n. 1
0
 def delete_repo_file(cls):
     for repo_class, _dummy in get_repo_file_classes():
         repo_file = repo_class()
         if os.path.exists(repo_file.path):
             os.unlink(repo_file.path)
     # When the repo is removed, also remove the override tracker
     WrittenOverrideCache.delete_cache()
Esempio n. 2
0
 def delete_repo_file(cls):
     for repo_class, _dummy in get_repo_file_classes():
         repo_file = repo_class()
         if os.path.exists(repo_file.path):
             os.unlink(repo_file.path)
     # When the repo is removed, also remove the override tracker
     WrittenOverrideCache.delete_cache()
Esempio n. 3
0
    def delete_repo_file(cls):
        yum_repo_file = YumRepoFile()
        if os.path.exists(yum_repo_file.path):
            os.unlink(yum_repo_file.path)

        # if we have zypper repo, remove it too.
        if os.path.exists(ZYPPER_REPO_DIR):
            zypper_repo_file = ZypperRepoFile()
            if os.path.exists(zypper_repo_file.path):
                os.unlink(zypper_repo_file.path)

        # When the repo is removed, also remove the override tracker
        WrittenOverrideCache.delete_cache()
Esempio n. 4
0
    def delete_repo_file(cls):
        yum_repo_file = YumRepoFile()
        if os.path.exists(yum_repo_file.path):
            os.unlink(yum_repo_file.path)

        # if we have zypper repo, remove it too.
        if os.path.exists(ZYPPER_REPO_DIR):
            zypper_repo_file = ZypperRepoFile()
            if os.path.exists(zypper_repo_file.path):
                os.unlink(zypper_repo_file.path)

        # When the repo is removed, also remove the override tracker
        WrittenOverrideCache.delete_cache()
Esempio n. 5
0
 def delete_repo_file(cls):
     repo_file = RepoFile()
     if os.path.exists(repo_file.path):
         os.unlink(repo_file.path)
     # When the repo is removed, also remove the override tracker
     WrittenOverrideCache.delete_cache()
Esempio n. 6
0
 def delete_repo_file(cls):
     repo_file = RepoFile()
     if os.path.exists(repo_file.path):
         os.unlink(repo_file.path)
     # When the repo is removed, also remove the override tracker
     WrittenOverrideCache.delete_cache()