Re: [PATCH] Remove _catchallCategory. yum handles this for us now.

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

 



All I see are - lines, I like! :)

Regards,

Hans


On 07/08/2009 09:30 PM, Chris Lumens wrote:
---
  yuminstall.py |   25 -------------------------
  1 files changed, 0 insertions(+), 25 deletions(-)

diff --git a/yuminstall.py b/yuminstall.py
index d1cb626..623911d 100644
--- a/yuminstall.py
+++ b/yuminstall.py
@@ -1097,8 +1097,6 @@ reposdir=/etc/anaconda.repos.d,/tmp/updates/anaconda.repos.d,/tmp/product/anacon
                  self.ayum._setGroups(None)
                  continue

-        self._catchallCategory()
-
      def doRepoSetup(self, anaconda, thisrepo = None, fatalerrors = True):
          self.__withFuncDo(anaconda, lambda r: self.ayum.doRepoSetup(thisrepo=r.id),
                            thisrepo=thisrepo, fatalerrors=fatalerrors)
@@ -1186,29 +1184,6 @@ reposdir=/etc/anaconda.repos.d,/tmp/updates/anaconda.repos.d,/tmp/product/anacon

          self.ayum.repos.callback = None

-    def _catchallCategory(self):
-        # FIXME: this is a bad hack, but catch groups which aren't in
-        # a category yet are supposed to be user-visible somehow.
-        # conceivably should be handled by yum
-        grps = {}
-        for g in self.ayum.comps.groups:
-            if g.user_visible:
-                grps[g.groupid] = g
-
-        for cat in self.ayum.comps.categories:
-            for g in cat.groups:
-                if grps.has_key(g):
-                    del grps[g]
-
-        if len(grps.keys()) == 0:
-            log.info("no groups missing")
-            return
-        c = yum.comps.Category()
-        c.name = _("Uncategorized")
-        c._groups = grps
-        c.categoryid = "uncategorized"
-        self.ayum.comps._categories[c.categoryid] = c
-
      def getDefaultGroups(self, anaconda):
          langs = anaconda.id.instLanguage.getCurrentLangSearchList()
          rc = map(lambda x: x.groupid,

_______________________________________________
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