Re: createrepo/rpm-metadata repository format creator ver 0.3.4

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2004-07-23 at 16:47, seth vidal wrote:
> On Fri, 2004-07-23 at 16:44 +0200, Ralf Corsepius wrote:
> > On Fri, 2004-07-23 at 16:17, seth vidal wrote:
> > > On Fri, 2004-07-23 at 16:17 +0200, Matthias Saou wrote:
> > > > Matias Feliciano wrote :
> > 
> > > > TypeError: unsupported operand type(s) for &: 'NoneType' and 'int'
> > > > 
> > > 
> > > looks like something coming out of the filelist tuple is not what I
> > > expected. I'm looking into it now. I just need some of those packages
> > > that trip it up.
> > 
> > I can deterministically reproduce it on FC1 with a directory containing
> > only  RH9's basesystem-rpm
> > (ftp.redhat.com/pub/9/en/os/i386/RedHat/RPMS/basesystem-8.0-2.noarch.rpm)
> > 
> 
> Can you produce it on fc2?

I can reproduce on an FC2-smp system (Currently no UP-FC2 system at hand):

# find -type f
./RPMS/basesystem-8.0-2.noarch.rpm

# 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'

# uname -a
Linux magnum 2.6.6-1.435.2.3smp #1 SMP Thu Jul 1 08:36:21 EDT 2004 i686 i686 i386 GNU/Linux

# rpm -q python
python-2.3.3-6

# ls -l RPMS/basesystem-8.0-2.noarch.rpm
-rw-r--r--  1 root root 2673 Jul 23 16:53 RPMS/basesystem-8.0-2.noarch.rpm
# rpm --checksig RPMS/basesystem-8.0-2.noarch.rpm
RPMS/basesystem-8.0-2.noarch.rpm: (sha1) dsa sha1 md5 gpg OK
# md5sum RPMS/basesystem-8.0-2.noarch.rpm
64bc91a544ed3b175e617df2b6683eec  RPMS/basesystem-8.0-2.noarch.rpm
# createrepo --version
0.3.4.

Ralf




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux