summaryrefslogtreecommitdiffstats
path: root/product.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2003-10-14 19:36:32 +0000
committerJeremy Katz <katzj@redhat.com>2003-10-14 19:36:32 +0000
commit60a8f9866e39b0eb0f5f0e15057f36679d007522 (patch)
treee86d39f59a06ada627d57addf02b31810730853d /product.py
parent6af42d3070c2528db2c3fb47a3613e150ef1c449 (diff)
downloadanaconda-60a8f9866e39b0eb0f5f0e15057f36679d007522.tar.gz
anaconda-60a8f9866e39b0eb0f5f0e15057f36679d007522.tar.xz
anaconda-60a8f9866e39b0eb0f5f0e15057f36679d007522.zip
read product path from the build stamp if possible, default to RedHat if not
available. basically notting's patch with some fixes and genhdlist handled
Diffstat (limited to 'product.py')
-rw-r--r--product.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/product.py b/product.py
index 334b32d14..aa66d9f0c 100644
--- a/product.py
+++ b/product.py
@@ -22,14 +22,17 @@ else:
if path is None:
productName = "anaconda"
productVersion = "bluesky"
+ productPath = "RedHat"
else:
f = open(path, "r")
lines = f.readlines()
if len(lines) < 3:
productName = "anaconda"
productVersion = "bluesky"
+ productPath = "RedHat"
else:
productName = lines[1][:-1]
productVersion = lines[2][:-1]
+ productPath = lines[3][:-1]