Remove BETANAG, instead reading it from .buildstamp (#628688).
By passing buildinstall --isbeta, this in turn gets passed to mk-images
which will then write out IsBeta=true to the .buildstamp file. anaconda
can then read that and make the right decision.
diff --git a/pyanaconda/installclass.py b/pyanaconda/installclass.py
index 3c6a579..197f1e7 100644
--- a/pyanaconda/installclass.py
+++ b/pyanaconda/installclass.py
@@ -117,7 +117,7 @@ class BaseInstallClass(object):
"complete"
)
- if not BETANAG:
+ if not isBeta:
dispatch.skipStep("betanag", permanent=1)
if iutil.isEfi() or not iutil.isX86():
diff --git a/pyanaconda/yuminstall.py b/pyanaconda/yuminstall.py
index ef19a90..0e46633 100644
--- a/pyanaconda/yuminstall.py
+++ b/pyanaconda/yuminstall.py
@@ -641,12 +641,12 @@ class AnacondaYum(YumSorter):
raise RepoError, "Repo %s contains -source or -debuginfo, excluding" % name
# this is a little hard-coded, but it's effective
- if not BETANAG and ("rawhide" in repo.id or "development" in repo.id):
+ if not isBeta and ("rawhide" in repo.id or "development" in repo.id):
name = repo.name
del(repo)
raise RepoError, "Excluding devel repo %s for non-devel anaconda" % name
- if BETANAG and not repo.enabled:
+ if isBeta and not repo.enabled:
name = repo.name
del(repo)
raise RepoError, "Excluding disabled repo %s for prerelease" % name
diff --git a/scripts/buildinstall b/scripts/buildinstall
index 8a5f4fa..205a91e 100755
--- a/scripts/buildinstall
+++ b/scripts/buildinstall
@@ -33,6 +33,7 @@ usage() {
}
CWD="$(pwd)"
+ISBETA="false"
while [ $# -gt 0 ]; do
case $1 in
@@ -87,6 +88,10 @@ while [ $# -gt 0 ]; do
MIRRORLIST="$MIRRORLIST $2"
shift; shift
;;
+ --isbeta)
+ ISBETA="true"
+ shift
+ ;;
*)
if [ -z "$REPO" ]; then
@@ -239,8 +244,8 @@ $MK_TREEINFO --family="$PRODUCTSTR" ${VARIANT:+--variant="$VARIANT"} --version=$