seth vidal wrote : > > Similar problem here on a Red Hat Linux 7.3 server (python2 2.2.2) : > > > > $ createrepo core > > 1251/2629 - RPMS/xorg-x11-twm-6.7.0-6.x86_64.rpmTraceback (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.2/stat.py", line 46, in S_ISDIR > > return S_IFMT(mode) == S_IFDIR > > File "/usr/lib/python2.2/stat.py", line 30, in S_IFMT > > return mode & 0170000 > > TypeError: unsupported operand type(s) for &: 'NoneType' and 'int' > > > > hmm - I can't get this to occur on fc2/python 2.3. > > Can you try that package on another system and tell me what you get? Seems like I got the same (and I have some corrupt packages...) with : - Fedora Core 1 host running the same package as used above on RHL 7.3 (all /usr/bin/python changed to /usr/bin/python2) - Fedora Core Development i386 tree being indexed (was the x86_64 above) $ createrepo core 596/2591 - RPMS/inn-devel-2.3.5-11.i386.rpmerror: rpmts_HdrFromFdno: headerRead failed: region trailer: BAD, tag -1360283171 type -1391722481 offset 849359250 count 974746489 Error opening package - RPMS/setup-2.5.33-1.noarch.rpm 1395/2591 - RPMS/vnc-4.0-3.i386.rpmTraceback (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.2/stat.py", line 46, in S_ISDIR return S_IFMT(mode) == S_IFDIR File "/usr/lib/python2.2/stat.py", line 30, in S_IFMT return mode & 0170000 TypeError: unsupported operand type(s) for &: 'NoneType' and 'int' On Fedora Core 2, same package again, indexing the x86_64 devel : $ createrepo core 400/2629 - RPMS/pkgconfig-0.15.0-3.x86_64.rpmerror: rpmts_HdrFromFdno: headerRead failed: region trailer: BAD, tag -1360283171 type -1391722481 offset 849359250 count 974746489 Error opening package - RPMS/setup-2.5.33-1.noarch.rpm 857/2629 - RPMS/system-config-packages-1.2.12-1.noarch.rpmTraceback (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' Matthias -- Clean custom Red Hat Linux rpm packages : http://freshrpms.net/ Fedora Core release 2 (Tettnang) - Linux kernel 2.6.6-1.435.2.3 Load : 0.08 0.21 0.33