avij / rpms / anaconda

Forked from rpms/anaconda 5 years ago
Clone

Blame SOURCES/0001-Don-t-display-Alternate-Architectures-in-product-nam.patch

9dea70
From 6cc9d3cb2562d0b6f1ae3fd8e0dd392c3daeb738 Mon Sep 17 00:00:00 2001
68f5b9
From: Radek Vykydal <rvykydal@redhat.com>
68f5b9
Date: Wed, 4 Oct 2017 11:12:06 +0200
68f5b9
Subject: [PATCH] Don't display "Alternate Architectures" in product name
9dea70
 (#1544556)
68f5b9
9dea70
Temporary fix on anaconda side. This should be resolved in compose tools (or
9dea70
testing infrastructure) side (#1488558).
68f5b9
9dea70
Resolves: rhbz#1544556
68f5b9
---
68f5b9
 pyanaconda/product.py | 2 ++
68f5b9
 1 file changed, 2 insertions(+)
68f5b9
68f5b9
diff --git a/pyanaconda/product.py b/pyanaconda/product.py
9dea70
index 1ff004659..a77ad42a9 100644
68f5b9
--- a/pyanaconda/product.py
68f5b9
+++ b/pyanaconda/product.py
68f5b9
@@ -41,6 +41,8 @@ bugUrl = config.get("Main", "BugURL")
68f5b9
 isFinal = config.getboolean("Main", "IsFinal")
68f5b9
 productArch = config.get("Main", "Arch")
68f5b9
 productName = config.get("Main", "Product")
68f5b9
+if productName.endswith(" Alternate Architectures"):
68f5b9
+    productName = productName[:-len(" Alternate Architectures")]
68f5b9
 productStamp = config.get("Main", "UUID")
68f5b9
 productVersion = config.get("Main", "Version")
68f5b9
 
68f5b9
-- 
9dea70
2.14.3
68f5b9