summaryrefslogtreecommitdiffstats
path: root/yuminstall.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2009-07-23 16:46:42 -0400
committerJeremy Katz <katzj@redhat.com>2009-07-23 16:47:33 -0400
commitb221260f510fe70cf4d25ab106d1c79817e3ec25 (patch)
tree8b63eb62e06fc029f8a39d522649e73492653577 /yuminstall.py
parentdbdcd9eb8f6963ce2e6633cbeb797355b59b442d (diff)
downloadanaconda-b221260f510fe70cf4d25ab106d1c79817e3ec25.tar.gz
anaconda-b221260f510fe70cf4d25ab106d1c79817e3ec25.tar.xz
anaconda-b221260f510fe70cf4d25ab106d1c79817e3ec25.zip
Disable devel repos on release (#503798)
We don't want to have rawhide listed as a repo once we disable betanag. This is a little bit hard-coded, but probably okay
Diffstat (limited to 'yuminstall.py')
-rw-r--r--yuminstall.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/yuminstall.py b/yuminstall.py
index 035c4b16f..355392771 100644
--- a/yuminstall.py
+++ b/yuminstall.py
@@ -533,6 +533,12 @@ class AnacondaYum(YumSorter):
del(repo)
raise RepoError, "Repo %s contains -source or -debuginfo, excluding" % name
+ # this is a little hard-coded, but it's effective
+ if not BETANAG and (repo.id.find("rawhide") or repo.id.find("development")):
+ name = repo.name
+ del(repo)
+ raise RepoError, "Excluding devel repo %s for non-devel anaconda" % name
+
if BETANAG and not repo.enabled:
name = repo.name
del(repo)