[PATCH] Disable devel repos on release (#503798)

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

 



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
---
 yuminstall.py |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/yuminstall.py b/yuminstall.py
index 035c4b1..3553927 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)
-- 
1.6.2.5

_______________________________________________
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