diff --git a/0001-fix-short-variable-none.patch b/0001-fix-short-variable-none.patch new file mode 100644 index 0000000000000000000000000000000000000000..223eb0eb46ffe449651b887bc440a981d15cee12 --- /dev/null +++ b/0001-fix-short-variable-none.patch @@ -0,0 +1,25 @@ +From 9781853e80ff20dc5f5a01bb4c90aa490c7dfd34 Mon Sep 17 00:00:00 2001 +From: t_feng +Date: Thu, 27 Aug 2020 23:38:19 +0800 +Subject: [PATCH] fix short variable none + +--- + productmd/treeinfo.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/productmd/treeinfo.py b/productmd/treeinfo.py +index a8f472e..2404d26 100644 +--- a/productmd/treeinfo.py ++++ b/productmd/treeinfo.py +@@ -246,7 +246,7 @@ class Release(BaseProduct): + self.name = "CentOS" + self.short = "CentOS" + else: +- self.short = None ++ self.short = "" + + def deserialize_0_3(self, parser): + self.name = parser.get("product", "name") +-- +2.23.0 + diff --git a/python-productmd.spec b/python-productmd.spec index 6bad93b5ab1dea8037815d5047ae4f83fdcf88ef..290b85797375b3485458dcd43ac1589e0a28d2a6 100644 --- a/python-productmd.spec +++ b/python-productmd.spec @@ -1,11 +1,12 @@ Name: python-productmd Version: 1.26 -Release: 1 +Release: 2 Summary: Python library providing parsers for metadata License: LGPLv2+ URL: https://github.com/release-engineering/productmd Source0: https://files.pythonhosted.org/packages/source/p/productmd/productmd-%{version}.tar.bz2 +Patch9000: 0001-fix-short-variable-none.patch BuildArch: noarch %description @@ -67,6 +68,13 @@ sed -i "s/generic_os/%{_vendor}/g" productmd/treeinfo.py %{python3_sitelib}/productmd-%{version}-py?.?.egg-info %changelog +* Thu Aug 27 2020 fengtao - 1.26-2 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC:fix short variable none + + * Fri Jul 24 2020 tianwei - 1.26-1 - Type:enhancement - ID:NA