Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12:Update
salt.8683
prevent-zypper-from-parsing-repo-configuration-...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File prevent-zypper-from-parsing-repo-configuration-from-.patch of Package salt.8683
From 2ce04ff289fca64ded514ed0f7f3aff59ba4647e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20Su=C3=A1rez=20Hern=C3=A1ndez?= <psuarezhernandez@suse.com> Date: Tue, 22 May 2018 12:04:48 +0100 Subject: [PATCH] Prevent zypper from parsing repo configuration from not .repo files --- salt/modules/zypper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/modules/zypper.py b/salt/modules/zypper.py index 68dd37f1b7..5a54a547c1 100644 --- a/salt/modules/zypper.py +++ b/salt/modules/zypper.py @@ -745,7 +745,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 -- 2.15.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor