|
发表于 2007-2-6 11:31:18
|
显示全部楼层
楼主,求救~~
我用的你的那个urlgrab文件把以前那个覆盖了,然后我用的是proz下载~~
yum 的时候他说无法打开remond.xml.gz文件~~
- Got DL succesfully, now renaming file:??
- Renaming file repomd.xml .....
- All Done.
- Error: Cannot open/read repomd.xml file for repository: fedora-cn
复制代码
我的urlgrab文件是
- # filename = urllib.url2pathname(path)
-
- if not (os.path.splitext(filename)[1] in ('.hdr')):
- # print "I want use wget or even axel to download,not you!"
- if urlparse.urlparse(url)[0] == "ftp":
- raise URLGrabError(2,
- _('Ftp can not, no proxy provide'))
- # if os.system("wget %s -O %s" % (url,filename)) != 0:
- # print "%s\n%s\n%s\n%s\n" % (path,parts,kk,filename)
- # print '%s' % urllib.url2pathname(filename)
- if os.system("proz -k 5 -r -t 4 --retry-delay=6 --no-getch --no-curses %s -P %s" % (url,os.path.dirname(filename))) != 0:
- raise URLGrabError(2,
- _('System function return fail'))
- return filename
复制代码
现在不知道怎么办,我用wget来下载,也要出这个错误~~~ |
|