python-productmd/productmd-add-support-generic-os.patch
2023-07-29 11:08:39 +08:00

18 lines
565 B
Diff

diff --git a/productmd/treeinfo.py b/productmd/treeinfo.py
index 4ba6e9d..27927a4 100644
--- a/productmd/treeinfo.py
+++ b/productmd/treeinfo.py
@@ -260,6 +260,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"
elif self.name.startswith("EulerOS"):
self.name = "EulerOS"
self.short = "EulerOS"
--
2.27.0