createrepo/rpm-metadata repository format creator ver 0.3.4

seth vidal skvidal at phy.duke.edu
Fri Jul 23 15:52:25 UTC 2004


> Yeah, it looks like some packages are giving back an empty string for
> file, mode and flags.  Just changing the loop in "genFileLists" to:
> 
> if mode and stat.S_ISDIR(mode):
>     self.dirnames.append(file)
> elif flag and file:
>     if (flag & 64):
>         self.ghostnames.append(file)
>     else:
>         self.filenames.append(file)
> 

You also need to check to see if the file is not an empty string.

instead of just None.

but yah - that fixed it and I finally got through so I'll be uploading
0.3.5 shortly.

thanks

-sv






More information about the devel mailing list