Well, it just tries to protect you against clobbering your working
index file in case the index build fails.
portsdb calls 'make index' with INDEXFILE set to $PORTSDIR/INDEX.tmp and
copies this temporary index file over when 'make index' was successful.
Yes, but it doesn't handle INDEXFILE being redefined (for example in
That's what the PORTS_INDEX environment variable is for. If your ruby
skills are good enough, you can probably catch this by changing
PREFIX/etc/pkgtools.conf to do the equivalent of `make -VINDEXFILE` when
the defaults for this variable are set. There are many reasons to
dislike the pkgtools suite, but I guess this particular "issue" is not
one of them.