Merge "Allow selecting suse_39 template"
This commit is contained in:
commit
e1f682cd17
@ -172,7 +172,7 @@ def process_args():
|
|||||||
"default: autodetect")
|
"default: autodetect")
|
||||||
parser.add_argument("--spec-style", help="distro style you want to use. "
|
parser.add_argument("--spec-style", help="distro style you want to use. "
|
||||||
"default: %s" % (distro), default=distro,
|
"default: %s" % (distro), default=distro,
|
||||||
choices=['suse', 'fedora'])
|
choices=['suse', 'suse_py39', 'fedora'])
|
||||||
parser.add_argument("--skip-pyversion",
|
parser.add_argument("--skip-pyversion",
|
||||||
help='Skip requirements for this pyversion',
|
help='Skip requirements for this pyversion',
|
||||||
default=_get_default_pyskips(distro),
|
default=_get_default_pyskips(distro),
|
||||||
|
@ -250,9 +250,9 @@ def _context_license_spdx(context, value):
|
|||||||
|
|
||||||
if context['spec_style'] == 'fedora':
|
if context['spec_style'] == 'fedora':
|
||||||
return mapping[value]
|
return mapping[value]
|
||||||
else:
|
|
||||||
# just use the spdx license name
|
# just use the spdx license name
|
||||||
return value
|
return value
|
||||||
|
|
||||||
|
|
||||||
###############
|
###############
|
||||||
|
Loading…
Reference in New Issue
Block a user