plugin: pass repos as arrays
Currently we were passing the repo information as a comma separated string, which is fragile, since urls can contain commas. Just transfer them as arrays of strings.
This commit is contained in:
parent
c6f1fa0a6f
commit
1d9612ca05
4 changed files with 9 additions and 7 deletions
|
|
@ -267,9 +267,8 @@ class OSBuildImage(BaseTaskHandler):
|
|||
return [Repository(repourl + "/$arch")]
|
||||
|
||||
def make_repos_for_user(self, repos):
|
||||
urls = repos.split(',')
|
||||
self.logger.debug("user repo override: %s", urls)
|
||||
return [Repository(u.strip()) for u in urls]
|
||||
self.logger.debug("user repo override: %s", str(repos))
|
||||
return [Repository(r) for r in repos]
|
||||
|
||||
# pylint: disable=arguments-differ
|
||||
def handler(self, name, version, distro, image_types, target, arches, opts):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue