neil / rpms / anaconda

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