[tools] buglet in mrepo
Eric Sorenson
ahpook at gmail.com
Fri May 4 20:53:33 CEST 2007
Fixed a little bug in mrepo that shows up when you use comps.xml style
groups with repomd format metadata. This output shows the error:
Execute: exec /usr/bin/createrepo -v --pretty --cachedir
"/export/mrepo/var/cache/fc4-i386/danger" --groupfile "RPMS.danger/comps.xml"
/export/mrepo/www/fc4-i386/RPMS.danger
Error: groupfile
/export/mrepo/www/fc4-i386/RPMS.danger/RPMS.danger/comps.xml cannot be
found.
Here is a quickie patch against the current svn sources
Index: mrepo
===================================================================
--- mrepo (revision 5361)
+++ mrepo (working copy)
@@ -713,9 +713,10 @@
if os.path.isdir(os.path.join(self.wwwdir,
'.olddata')):
remove(os.path.join(self.wwwdir,
'.olddata'))
groupfile = os.path.join(cf.srcdir, self.dist.nick,
self.name + '-comps.xml')
+ info(2, "%s: Looking for groupfile %s" % (
self.dist.nick, groupfile))
if os.path.isfile(groupfile):
symlink(groupfile, os.path.join(self.wwwdir,
'comps.xml'))
- repoopts = repoopts + ' --groupfile
"RPMS.%s/comps.xml"' % self.name
+ repoopts = repoopts + ' --groupfile
comps.xml'
info(2, '%s: Create repomd repository for %s' % (
self.dist.nick, self.name))
ret = run('%s %s %s' % (cf.cmd['createrepo'],
repoopts, self.wwwdir))
if ret:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rpmforge.net/pipermail/tools/attachments/20070504/ea3b27ff/attachment.html
More information about the tools
mailing list