createrepo/rpm-metadata repository format creator ver 0.3.4

seth vidal skvidal at phy.duke.edu
Fri Jul 23 15:44:58 UTC 2004


> # createrepo RPMS
> Traceback (most recent call last):
>   File "/usr/share/createrepo/genpkgmetadata.py", line 489, in ?
>     main(sys.argv[1:])
>   File "/usr/share/createrepo/genpkgmetadata.py", line 424, in main
>     doPkgMetadata(cmds, ts)
>   File "/usr/share/createrepo/genpkgmetadata.py", line 274, in doPkgMetadata
>     mdobj = dumpMetadata.RpmMetaData(ts, file, cmds['baseurl'], cmds['sumtype'])
>   File "/usr/share/createrepo/dumpMetadata.py", line 199, in __init__
>     self.genFileLists()
>   File "/usr/share/createrepo/dumpMetadata.py", line 399, in genFileLists
>     if stat.S_ISDIR(mode):
>   File "/usr/lib/python2.3/stat.py", line 46, in S_ISDIR
>     return S_IFMT(mode) == S_IFDIR
>   File "/usr/lib/python2.3/stat.py", line 30, in S_IFMT
>     return mode & 0170000
> TypeError: unsupported operand type(s) for &: 'str' and 'int'
> 

Great.
 I think I found it - some packages are giving back odd answers.

I've patched the program and I think I fixed all 3 of the reported
problems.

as soon as ols bandwidth lets me talk to the world I'll check them in
and post a new tarball, if you can test it, it would be great.

Thanks for finding this problem.

-sv






More information about the fedora-devel-list mailing list