Re: yum 2.1.0

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

 



On Fri, 2004-09-03 at 21:06, seth vidal wrote:
> On Fri, 2004-09-03 at 14:00, Lorenzo Luconi Trombacchi wrote:
> > The createrepo command works only on Fedora Core 2?
> > 
> > I tried it on Fedora Core 1 and Red Hat 9 but I got an error like this one:
> > 
> 
> > Can I do something to fix this problem?
> > 
> > Unfortunately my repository are on Fedora Core 1 or RH9 machines! :-(
> 
> 
> install createrepo 0.3.6 from here:
> http://linux.duke.edu/metadata/generate/
> 
> 0.3.6 works fine on fc1 and rhl9 machines. 0.3.7 had a patch added that
> requires a newer libxml2, iirc. I'll get it fixed up.

I don't think this particular traceback has anything to do with libxml2,
but tagByName() behaving differently on FC2 and < FC2 (seemingly a rpm,
rpm-python or python difference).  The attached patch should fix this
particular case.
Index: dumpMetadata.py
===================================================================
RCS file: /cvsroot/metadata/cvs-root/generate/dumpMetadata.py,v
retrieving revision 1.22
diff -a -u -r1.22 dumpMetadata.py
--- dumpMetadata.py	27 Aug 2004 07:03:40 -0000	1.22
+++ dumpMetadata.py	3 Sep 2004 19:37:02 -0000
@@ -86,7 +86,9 @@
 
 def utf8String(string):
     """hands back a unicoded string"""
-    if isinstance(string, unicode):
+    if string is None:
+        return ''
+    elif isinstance(string, unicode):
         return string
     try:
         x = unicode(string, 'ascii')

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux