Merge pull request #47765 from meaksh/2017.7-fix-zypper-error-reading-repo

Prevent zypper from parsing repo configuration from not .repo files
This commit is contained in:
Nicole Thomas 2018-05-23 10:45:03 -04:00 committed by GitHub
commit 46618d2ce7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -829,7 +829,7 @@ def _get_configured_repos():
'''
repos_cfg = configparser.ConfigParser()
repos_cfg.read([REPOS + '/' + fname for fname in os.listdir(REPOS)])
repos_cfg.read([REPOS + '/' + fname for fname in os.listdir(REPOS) if fname.endswith(".repo")])
return repos_cfg