http://article.gmane.org/gmane.linux.gentoo.alt/2778
dbapi.getRepositoryPath returns an os.path.realpath-ified path of the
repository, which means in case of symlinks (my case) this is different
from what the PORTDIR variable gives. So before comparing,
os.path.realpath-ify the PORTDIR too.
svn path=/main/branches/prefix/; revision=7245
# assing lookup indexes
if not oldrepo:
oldrepoindex = "?"
- elif oldrepo == pkgsettings["PORTDIR"]:
+ elif oldrepo == os.path.realpath(pkgsettings["PORTDIR"]):
oldrepoindex = "0"
else:
oldrepoindex = str(overlays_real.index(os.path.normpath(oldrepo)) + 1)