On Thu, 16 Feb 2012 17:06:11 +0800
继刚 <[email protected]> wrote:

> I am trying to run a script that will run command "createrepo" when
> new rpms is pushed into the reposity, the command to run is:
> cd /home/yum/xxx/4/i386 /usr/bin/createrepo -d -p --update -o . .
> when i type this command manually,it runs ok,
> but when the command is run in a shell scripts, it complaiins  likes
> this: Saving Primary metadata
> Saving file lists metadata
> Saving other metadata
> Traceback (most recent call last):
>   File "/usr/share/createrepo/genpkgmetadata.py", line 722, in ?
>     main(sys.argv[1:])
>   File "/usr/share/createrepo/genpkgmetadata.py", line 646, in main
>     mdgen.doRepoMetadata()
>   File "/usr/share/createrepo/genpkgmetadata.py", line 321, in
> doRepoMetadata dumpMetadata.repoXML(reporoot, self.cmds)
>   File "/usr/share/createrepo/dumpMetadata.py", line 821, in repoXML
>     rp.getOtherdata(complete_path, csum)
>   File "/usr/lib64/python2.4/site-packages/sqlitecachec.py", line 57,
> in getOtherdata self.repoid))
> TypeError: Parsing other.xml error: Premature end of data in tag
> otherdata line 2
> 
> I just can not get it resolved, any help ? thanks a lot.
> Woking Env(RedHat 5.4 x86_64, rpm-4.4.2.3-18.el5.x86_64 ,
> yum-3.2.22-20.el5.noarch,
> yum-metadata-parser-1.1.2-3 ,yum-rhn-plugin-0.5.4-13)
> 

if you go and look at the other.xml file what do you see on the second
line?

sounds like there is something sneaking in that's breaking
yum-metadata-parser.

-sv
_______________________________________________
Yum-devel mailing list
[email protected]
http://lists.baseurl.org/mailman/listinfo/yum-devel

Reply via email to