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)
________________________________
This email (including any attachments) is confidential and may be legally
privileged. If you received this email in error, please delete it immediately
and do not copy it or use it for any purpose or disclose its contents to any
other person. Thank you.
本电邮(包括任何附件)可能含有机密资料并受法律保护。如您不是正确的收件人,请您立即删除本邮件。请不要将本电邮进行复制并用作任何其他用途、或透露本邮件之内容。谢谢。
_______________________________________________
Yum-devel mailing list
[email protected]
http://lists.baseurl.org/mailman/listinfo/yum-devel