Fwd: Patch for finding group file.

Jesse Keating <[email protected]>
Newsgroups gmane.linux.rpm.metadata
Organization Red Hat
Message-ID <[email protected]>
Forgot to send this to list.  Background:

/usr/bin/createrepo -g 
Fedora/base/comps.xml -q /srv/pungi/development/6.90/Desktop/i386/os

call results in this error:

Error: 
groupfile /srv/pungi/development/6.90/Desktop/i386/Fedora/base/comps.xml 
cannot be found.

In genpkgmetadata, the final directory gets chopped off and put into a 
variable, however this variable isn't referenced again when trying to find 
the comps file, if the location of the comps file is given relatively instead 
of absolutely (and you're not doing a split repo create, that gets it right).  
This patch should solve that.

----------  Forwarded Message  ----------

Subject: Patch for finding group file.
Date: Tuesday 06 February 2007 17:08
From: Jesse Keating <[email protected]>
To: [email protected]

I don't _think_ this breaks... much.

--
Jesse Keating
Release Engineer: Fedora

-------------------------------------------------------

-- 
Jesse Keating
Release Engineer: Fedora

_______________________________________________
Rpm-metadata mailing list
[email protected]
https://lists.dulug.duke.edu/mailman/listinfo/rpm-metadata
group-not-found.patch (text/x-diff, 567 B)
--- generate/genpkgmetadata.py.jk	2007-02-06 17:04:12.000000000 -0500
+++ generate/genpkgmetadata.py	2007-02-06 17:05:34.000000000 -0500
@@ -481,7 +481,7 @@
         if cmds['split']:
             a = os.path.join(cmds['basedir'], directory, cmds['groupfile'])
         elif not os.path.isabs(a):
-            a = os.path.join(cmds['basedir'], cmds['groupfile'])
+            a = os.path.join(cmds['basedir'], directory, cmds['groupfile'])
         if not os.path.exists(a):
             errorprint(_('Error: groupfile %s cannot be found.' % a))
             usage()
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQBFyeEe4v2HLvE71NURAlKTAKCE6QsYrEye0ARObpqhmsWdOyeAWACgnBWR
RkR0uIPI46tGAsMKrLBs+fA=
=fU8d
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.