From e437f3cd9b7387e6e0b3198dab450a93d3807636 Mon Sep 17 00:00:00 2001 From: s17723959267 Date: Tue, 20 Oct 2020 14:52:06 +0800 Subject: [PATCH] add support generic os patch --- productmd-add-support-generic-os.patch | 13 +++++++++++++ python-productmd.spec | 10 +++++++++- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 productmd-add-support-generic-os.patch diff --git a/productmd-add-support-generic-os.patch b/productmd-add-support-generic-os.patch new file mode 100644 index 0000000..4b1e6ab --- /dev/null +++ b/productmd-add-support-generic-os.patch @@ -0,0 +1,13 @@ +diff -uNrp a/productmd/treeinfo.py b/productmd/treeinfo.py +--- a/productmd/treeinfo.py 2016-11-15 15:04:26.000000000 +0000 ++++ b/productmd/treeinfo.py 2019-01-10 16:44:48.998592066 +0000 +@@ -245,6 +245,9 @@ class Release(BaseProduct): + elif self.name.startswith("CentOS"): + self.name = "CentOS" + self.short = "CentOS" ++ elif self.name.startswith("generic_os"): ++ self.name = "generic_os" ++ self.short = "generic_os" + else: + self.short = None + diff --git a/python-productmd.spec b/python-productmd.spec index 6bad93b..1a9cd8f 100644 --- a/python-productmd.spec +++ b/python-productmd.spec @@ -1,11 +1,13 @@ 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:productmd-add-support-generic-os.patch + BuildArch: noarch %description @@ -67,6 +69,12 @@ sed -i "s/generic_os/%{_vendor}/g" productmd/treeinfo.py %{python3_sitelib}/productmd-%{version}-py?.?.egg-info %changelog +* Tue Oct 20 2020 tianwei - 1.26-2 +- Type:enhancement +- ID:NA +- SUG:NA +- DESC:add support generic os patch + * Fri Jul 24 2020 tianwei - 1.26-1 - Type:enhancement - ID:NA -- Gitee