Farkas Levente wrote:
Farkas Levente wrote:
> hi,
> while i try to run revisor on epel-5 manually i always got:
> which is obviously not true since all repo was generated with :
> createrepo -g /usr/share/revisor/comps/comps-c5.xml ...
> so at least the default groups are in.
> what else can be the reason?
> ------------------------------------------------------
> No groups present! Error was: No Groups Available in any repository
> Traceback (most recent call last):
> File "/usr/lib/python2.4/site-packages/revisor/load_kickstart.py",
> line 205, in button_forward_clicked
> self.gui.displayReadyScreen()
> File "/usr/lib/python2.4/site-packages/revisor/gui.py", line 273, in
> displayReadyScreen
> self.ReadyScreen = ready_screen.ReadyScreen(self)
> File "/usr/lib/python2.4/site-packages/revisor/ready_screen.py", line
> 110, in __init__
> self.base.pkglist_from_ksdata(groupList=groupList,
> packageList=packageList, excludedList=excludedList,
> ignore_list=self.cfg.yumobj.tsInfo.pkgdict.keys())
> File "/usr/lib/python2.4/site-packages/revisor/base.py", line 189, in
> pkglist_from_ksdata
> self.pkglist_from_ksdata_respin(groupList, packageList, excludedList)
> File "/usr/lib/python2.4/site-packages/revisor/base.py", line 477, in
> pkglist_from_ksdata_respin
> if not self.cfg.yumobj.comps.has_group(ksgroup.name):
> AttributeError: 'str' object has no attribute 'name'
> ------------------------------------------------------
>
this small fix for revisor-2.0.5.2-1.el5, but the
------------------------------------------------------
No groups present! Error was: No Groups Available in any repository
------------------------------------------------------
still comes when there _are_ many groups present:-(
any help would be very useful.
thanks.
--- base.py 2008-10-29 11:15:13.000000000 +0100
+++ /usr/lib/python2.4/site-packages/revisor/base.py 2009-02-06
13:07:57.000000000 +0100
@@ -474,14 +474,19 @@
## Add packages from Groups in ksdata
##
for ksgroup in groupList:
- if not self.cfg.yumobj.comps.has_group(ksgroup.name):
- self.log.warning(_("No such group %s") % ksgroup.name )
+ if hasattr(ksgroup,"name"):
+ group_name = ksgroup.name
+ else:
+ group_name = ksgroup
+
+ if not self.cfg.yumobj.comps.has_group(group_name):
+ self.log.warning(_("No such group %s") % group_name )
continue
else:
- self.log.debug(_("Found group: %s") % ksgroup.name)
+ self.log.debug(_("Found group: %s") % group_name)
# Get group object from comps
- grp = self.cfg.yumobj.comps.return_group(ksgroup.name)
+ grp = self.cfg.yumobj.comps.return_group(group_name)
txmbrs_used = self.cfg.yumobj.selectGroup(grp.name)
if ksgroup.include >= kickstart.constants.GROUP_REQUIRED:
in this case we got further but no too much:
--------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/revisor/load_kickstart.py",
line 205, in button_forward_clicked
self.gui.displayReadyScreen()
File "/usr/lib/python2.4/site-packages/revisor/gui.py", line 273, in
displayReadyScreen
self.ReadyScreen = ready_screen.ReadyScreen(self)
File "/usr/lib/python2.4/site-packages/revisor/ready_screen.py", line
110, in __init__
self.base.pkglist_from_ksdata(groupList=groupList,
packageList=packageList, excludedList=excludedList,
ignore_list=self.cfg.yumobj.tsInfo.pkgdict.keys())
File "/usr/lib/python2.4/site-packages/revisor/base.py", line 189, in
pkglist_from_ksdata
self.pkglist_from_ksdata_respin(groupList, packageList, excludedList)
File "/usr/lib/python2.4/site-packages/revisor/base.py", line 492, in
pkglist_from_ksdata_respin
if ksgroup.include >= kickstart.constants.GROUP_REQUIRED:
AttributeError: 'str' object has no attribute 'include'
--------------------------------------------
:-(
--
Levente "Si vis pacem para bellum!"