SOLVED.<br>While uddating a package i accidentally put a "¸" in the package version in the spec file. And createrepo doesn't like this.<br><br><div class="gmail_quote">On Tue, Feb 22, 2011 at 12:25 PM, Janez Kosmrlj <span dir="ltr"><<a href="mailto:postnalista@googlemail.com">postnalista@googlemail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">I run a local repo for our company's packages. Since yesterday we have problems with creating the repo files. When i run "createrepo --update -s sha rpmdir" i get the folowing error:<br>
<br>File "/usr/share/createrepo/genpkgmetadata.py", line 249, in ?<br>
main(sys.argv[1:])<br> File "/usr/share/createrepo/genpkgmetadata.py", line 223, in main<br> mdgen.doPkgMetadata()<br> File "/usr/lib/python2.4/site-packages/createrepo/__init__.py", line 368, in doPkgMetadata<br>
self.writeMetadataDocs(packages)<br> File "/usr/lib/python2.4/site-packages/createrepo/__init__.py", line 532, in writeMetadataDocs<br> self.primaryfile.write(po.xml_dump_primary_metadata())<br> File "/usr/lib/python2.4/site-packages/yum/packages.py", line 1032, in xml_dump_primary_metadata<br>
msg += misc.to_unicode(self._dump_base_items())<br> File "/usr/lib/python2.4/site-packages/yum/packages.py", line 866, in _dump_base_items<br> msg = """<br>UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 83: ordinal not in range(128)<br>
<br><br>I didn't change anything on the server and it fails on packages that are more than a year old. It usually fails on package number 200-206. When i move the supposedly broken package to a new directory and run createrepo on that directory, then createrepo finishes OK.<br>
<br>I googled a bit, but i couldn't find anything useful. Has anyone on this list seen something similar and what was the problem.<br><br>thanx in advance<br><font color="#888888">Janez<br>
</font></blockquote></div><br>