dpolovinkin / rpms / anaconda

Forked from rpms/anaconda 3 years ago
Clone

Blame SOURCES/0001-Add-product-data-for-CentOS-Stream.patch

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