neil / rpms / anaconda

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