dpolovinkin / rpms / anaconda

Forked from rpms/anaconda 3 years ago
Clone
Blob Blame History Raw
From 6cc9d3cb2562d0b6f1ae3fd8e0dd392c3daeb738 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
 (#1544556)

Temporary fix on anaconda side. This should be resolved in compose tools (or
testing infrastructure) side (#1488558).

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

diff --git a/pyanaconda/product.py b/pyanaconda/product.py
index 1ff004659..a77ad42a9 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.14.3