zengxyz / rpms / anaconda

Forked from rpms/anaconda 3 months ago
Clone
ae337a
From 4dd22c6aad986c49c313999332c3791d581a1e92 Mon Sep 17 00:00:00 2001
ae337a
From: Brian Stinson <bstinson@centosproject.org>
ae337a
Date: Thu, 25 Jun 2020 18:10:13 -0500
ae337a
Subject: [PATCH] Add product data for CentOS Stream
ae337a
ae337a
---
ae337a
 data/product.d/centos-stream.conf                | 7 +++++++
ae337a
 tests/nosetests/pyanaconda_tests/product_test.py | 4 ++++
ae337a
 2 files changed, 11 insertions(+)
ae337a
 create mode 100644 data/product.d/centos-stream.conf
ae337a
ae337a
diff --git a/data/product.d/centos-stream.conf b/data/product.d/centos-stream.conf
ae337a
new file mode 100644
ae337a
index 000000000..c65fcbbdf
ae337a
--- /dev/null
ae337a
+++ b/data/product.d/centos-stream.conf
ae337a
@@ -0,0 +1,7 @@
ae337a
+# Anaconda configuration file for CentOS Stream.
ae337a
+
ae337a
+[Product]
ae337a
+product_name = CentOS Stream
ae337a
+
ae337a
+[Base Product]
ae337a
+product_name = CentOS Linux
ae337a
diff --git a/tests/nosetests/pyanaconda_tests/product_test.py b/tests/nosetests/pyanaconda_tests/product_test.py
ae337a
index f2203f431..5967141bc 100644
ae337a
--- a/tests/nosetests/pyanaconda_tests/product_test.py
ae337a
+++ b/tests/nosetests/pyanaconda_tests/product_test.py
ae337a
@@ -118,6 +118,10 @@ class ProductConfigurationTestCase(unittest.TestCase):
ae337a
             "CentOS Linux", "",
ae337a
             ["rhel.conf", "centos.conf"]
ae337a
         )
ae337a
+        self._check_default_product(
ae337a
+            "CentOS Stream", "",
ae337a
+            ["rhel.conf", "centos.conf", "centos-stream.conf"]
ae337a
+        )
ae337a
         self._check_default_product(
ae337a
             "Red Hat Virtualization", "",
ae337a
             ["rhel.conf", "rhev.conf"]
ae337a
-- 
ae337a
2.26.2
ae337a