python-productmd/productmd-add-support-generic-os.patch
2021-12-20 15:50:51 +08:00

14 lines
523 B
Diff

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 = ""