菜鸟在使用createrepo时出现以下问题:
[root@localhost repodata]# createrepo -g /disk/centos5/CentOS /disk/centos5
182/508 - CentOS/kdenetwork-3.5.4-4.fc6.i386.rpm
Error opening package - CentOS/kdepim-3.5.4-4.fc6.i386.rpm
508/508 - CentOS/zsh-4.2.6-1.i386.rpm
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 879, in repoXML
fo = open(grpfile, 'r')
IOError: [Errno 21] Is a directory
请问该如何解决?
[ 本帖最后由 x7874 于 2008-7-25 16:28 编辑 ]
于 2013-03-27 11:17:57发表:
vim /usr/share/createrepo/genpkgmetadata.py
#!/usr/bin/python
# primary functions and glue for generating the repository metadata
改成
#!/usr/bin/python2.4
# primary functions and glue for generating the repository metadata