Date: Mon, 07 May 2012 09:39:40 +0200 From: Andrea Venturoli <ml@netfence.it> To: Bryan Drewery <bryan@shatow.net> Cc: freebsd-ports@freebsd.org Subject: Re: portsdb -U fails Message-ID: <4FA77C3C.7060007@netfence.it> In-Reply-To: <4FA6C9FA.1010206@netfence.it> References: <4FA38930.6050501@netfence.it> <4FA3D709.6040509@shatow.net> <4FA6C9FA.1010206@netfence.it>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4FA77C3C.7060007>