[rhel6-branch] Set productIsFinal default value to False (#808935)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Also set it in live installs.
---
 liveinst/liveinst |    3 +++
 product.py        |    3 +++
 2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/liveinst/liveinst b/liveinst/liveinst
index 736dba4..c857fbc 100755
--- a/liveinst/liveinst
+++ b/liveinst/liveinst
@@ -38,6 +38,9 @@ export ANACONDA_PRODUCTNAME=$( cat /etc/system-release | sed -r -e 's/ *release.
 export ANACONDA_PRODUCTVERSION=$( cat /etc/system-release | sed -r -e 's/^.* ([0-9\.]+).*$/\1/' )
 export ANACONDA_BUGURL=${ANACONDA_BUGURL:="https://bugzilla.redhat.com/bugzilla/"}
 
+# check if we have a final release
+grep -i beta /etc/system-release > /dev/null || export ANACONDA_ISFINAL=1
+
 export PATH=/sbin:/usr/sbin:$PATH
 
 if [ -n "$DISPLAY" -a -n "$LANG" ]; then
diff --git a/product.py b/product.py
index 896d0d4..3031f96 100644
--- a/product.py
+++ b/product.py
@@ -35,6 +35,7 @@ productVersion = "bluesky"
 productPath = "Packages"
 productArch = None
 bugUrl = "your distribution provided bug reporting tool."
+productIsFinal = False
 
 if path is not None:
     f = open(path, "r")
@@ -64,6 +65,8 @@ if os.environ.has_key("ANACONDA_PRODUCTARCH"):
     productArch = os.environ["ANACONDA_PRODUCTARCH"]
 if os.environ.has_key("ANACONDA_BUGURL"):
     bugUrl = os.environ["ANACONDA_BUGURL"]
+if os.environ.has_key("ANACONDA_ISFINAL"):
+    productIsFinal = True
 
 if productVersion == "development": # hack to transform for now
     productVersion = "rawhide"
-- 
1.7.5.4

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux