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

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



> 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




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