File 0001-Allow-selecting-suse_39-template.patch of Package python-renderspec
From b9145d5d4d4d660c1a236f9866265e5e51ca8b70 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Dirk=20M=C3=BCller?= <dirk@dmllr.de>
Date: Fri, 3 Mar 2023 21:51:42 +0100
Subject: [PATCH] Allow selecting suse_39 template
Change-Id: Ib16122c5b25cf8f83f27a83ef49ee75643bbc7ba
---
renderspec/__init__.py | 2 +-
renderspec/contextfuncs.py | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/renderspec/__init__.py b/renderspec/__init__.py
index 0594584..2effa8c 100644
--- a/renderspec/__init__.py
+++ b/renderspec/__init__.py
@@ -172,7 +172,7 @@ def process_args():
"default: autodetect")
parser.add_argument("--spec-style", help="distro style you want to use. "
"default: %s" % (distro), default=distro,
- choices=['suse', 'fedora'])
+ choices=['suse', 'suse_py39', 'fedora'])
parser.add_argument("--skip-pyversion",
help='Skip requirements for this pyversion',
default=_get_default_pyskips(distro),
diff --git a/renderspec/contextfuncs.py b/renderspec/contextfuncs.py
index 023e688..b2c3aea 100644
--- a/renderspec/contextfuncs.py
+++ b/renderspec/contextfuncs.py
@@ -250,9 +250,9 @@ def _context_license_spdx(context, value):
if context['spec_style'] == 'fedora':
return mapping[value]
- else:
- # just use the spdx license name
- return value
+
+ # just use the spdx license name
+ return value
###############
--
2.39.2