python-productmd/productmd-add-support-euleros.patch

14 lines
516 B
Diff
Raw Normal View History

2019-11-06 19:49:52 +08:00
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("EulerOS"):
+ self.name = "EulerOS"
+ self.short = "EulerOS"
else:
self.short = None