handle multiple topurl values in kojid
This commit is contained in:
parent
da6dd0b183
commit
77d908bb8a
2 changed files with 30 additions and 14 deletions
|
|
@ -204,7 +204,7 @@ class BuildRoot(object):
|
|||
for k in ('repoid', 'tag_name'):
|
||||
if hasattr(self, k):
|
||||
opts[k] = getattr(self, k)
|
||||
for k in ('mockdir', 'topdir', 'topurl', 'packager', 'vendor', 'distribution', 'mockhost', 'yum_proxy'):
|
||||
for k in ('mockdir', 'topdir', 'topurl', 'topurls', 'packager', 'vendor', 'distribution', 'mockhost', 'yum_proxy'):
|
||||
if hasattr(self.options, k):
|
||||
opts[k] = getattr(self.options, k)
|
||||
opts['buildroot_id'] = self.id
|
||||
|
|
@ -2978,6 +2978,12 @@ def get_options():
|
|||
logger.error(msg)
|
||||
parser.error(msg)
|
||||
|
||||
topurls = options.topurl.split()
|
||||
options.topurls = topurls
|
||||
if len(topurls) > 1:
|
||||
# XXX - fix the rest of the code so this is not necessary
|
||||
options.topurl = topurl[0]
|
||||
|
||||
if options.pkgurl:
|
||||
logger.warning("The pkgurl option is obsolete")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue