예제 #1
0
파일: repolib.py 프로젝트: Lorquas/rhsm
 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()
예제 #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()
예제 #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()
예제 #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()
예제 #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()
예제 #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()