On 05/07/2012 02:39 AM, Andrea Venturoli wrote: > On 05/06/12 20:59, Andrea Venturoli wrote: > >>> I've logged this failure upstream at >>> https://github.com/pkgtools/pkgtools/issues/27 >>> >>> If you figure anything further out, before I fix it, please let me know. >> >> I'd gladly help. >> The way to go, IMHO,is to get additional logging; unfortunately I know >> nothing about Ruby. > > I tried digging this up a little: the problem seems to arise in > portsdb.rb, in function "update", when the temp file is moved to > /usr/ports/INDEX-7 (or -8 or whatever). > >> if not system('/bin/mv', '-f', tmp, index_file) >> STDERR.puts 'failed to overwrite #{index_file}!"' >> raise IndexFileError, "index overwrite error" >> end > > Here index_file is nil. > If I replace index_file with "/usr/ports/INDEX-7" (again, or -8, or > whatever), everything works fine. > Unfortunately, I was not able to find out where that value should come > from and how to fix it. > > bye & Thanks > av.
av, Thank you for your report and looking into this further. I have fixed this upstream for the next release - 2.4.9.6. Here's a patch in the meantime: https://github.com/pkgtools/pkgtools/commit/6c2d240e917cc14591086f59db9c8c39e9771397.diff Thank you, Bryan Drewery
signature.asc
Description: OpenPGP digital signature