netgod / rpms / anaconda

Forked from rpms/anaconda 2 years ago
Clone
Blob Blame History Raw
From 5d888b98e50aadf12204c5105ab2d6d8372772bb Mon Sep 17 00:00:00 2001
From: Radek Vykydal <rvykydal@redhat.com>
Date: Wed, 4 Oct 2017 11:12:06 +0200
Subject: [PATCH] Don't display "Alternate Architectures" in product name
 (#1498138)

Temporary fix on anaconda side for Pegas 1.0.  For Pegas 1.1 this should be
resolved in compose tools (or testing infrastructure) side.

Resolves: rhbz#1498138
---
 pyanaconda/product.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/pyanaconda/product.py b/pyanaconda/product.py
index 1ff0046..a77ad42 100644
--- a/pyanaconda/product.py
+++ b/pyanaconda/product.py
@@ -41,6 +41,8 @@ bugUrl = config.get("Main", "BugURL")
 isFinal = config.getboolean("Main", "IsFinal")
 productArch = config.get("Main", "Arch")
 productName = config.get("Main", "Product")
+if productName.endswith(" Alternate Architectures"):
+    productName = productName[:-len(" Alternate Architectures")]
 productStamp = config.get("Main", "UUID")
 productVersion = config.get("Main", "Version")
 
-- 
2.4.3