diff options
author | Mike Fulbright <msf@redhat.com> | 2002-07-17 03:27:05 +0000 |
---|---|---|
committer | Mike Fulbright <msf@redhat.com> | 2002-07-17 03:27:05 +0000 |
commit | 6e72f98f4111c257403b68697984b83102fb1172 (patch) | |
tree | 0b171781d1504f61bb1df04b78d146f7fdea73be /comps.py | |
parent | 0abd4af3ee80a4ba19106aff587f5bda1f2143c7 (diff) | |
download | anaconda-6e72f98f4111c257403b68697984b83102fb1172.tar.gz anaconda-6e72f98f4111c257403b68697984b83102fb1172.tar.xz anaconda-6e72f98f4111c257403b68697984b83102fb1172.zip |
pull in package descriptions from xml now
Diffstat (limited to 'comps.py')
-rw-r--r-- | comps.py | 38 |
1 files changed, 27 insertions, 11 deletions
@@ -251,6 +251,9 @@ class Component: def packagesFullInfo(self): return self.newpkgDict + def metapackagesFullInfo(self): + return self.metapkgs + def includesPackage(self, pkg, includeDeps = 0): if not self.pkgDict.has_key(pkg): return 0 @@ -485,7 +488,8 @@ class Component: self.default = compgroup.default self.comp = compgroup self.id = compgroup.id - + self.description = compgroup.description + # do we use these anymore? self.conditionalKey = conditionalKey self.parent = parent @@ -947,13 +951,13 @@ def orderPackageGroups(curgroups): "KDE Desktop Environment"], "Applications" : ["Editors", "Engineering and Scientific", - "Internet Applications", - "Office/Productivity Applications", - "Sound and Video Applications", - "Graphics Applications", + "Graphical Internet", + "Text-based Internet", + "Office/Productivity", + "Sound and Video", + "Graphics", "Games and Entertainment", - "Authoring and Publishing", - "Text Based Applications"], + "Authoring and Publishing"], "Servers" : [ "Server Configuration Tools", "Web Server", "Mail Server", @@ -971,7 +975,8 @@ def orderPackageGroups(curgroups): "X Software Development", "GNOME Software Development", "KDE Software Development"], - "System" : [ "System Tools", + "System" : [ "Administration Tools", + "System Tools", "Printing Support", "X Window System"] } @@ -1010,6 +1015,17 @@ def orderPackageGroups(curgroups): return (retlist, retdict) -def getCompGroupDescription(compname): - return ("This is the group %s. Its got stuff in it that you probably want." - " If not you can turn off the optional stuff. Anyhow, enjoy %s!") % (compname, compname) +def getCompGroupDescription(comp): + if comp.name == u"Everything": + return _("This group includes all the packages available. Note that " + "this is substantially more packages than just the ones " + "in all the other package groups on this page.") + + descr = comp.description + if descr: + return _(descr) + else: + return None + +# return ("This is the group %s. Its got stuff in it that you probably want." +# " If not you can turn off the optional stuff. Anyhow, enjoy %s!") % (compname, compname) |