This fixes a case in which repoman could use the PORTDIR setting in
make.conf to grab herds.xml, even though cwd refers to a different
path (cvs tree rather than rsync tree).
repo_info = portdb._repo_info[portdir_overlay]
portdb.porttrees = list(repo_info.eclass_db.porttrees)
portdir = portdb.porttrees[0]
+repoman_settings['PORTDIR'] = portdir
+repoman_settings.backup_changes('PORTDIR')
# Generate an appropriate PORTDIR_OVERLAY value for passing into the
# profile-specific config constructor calls.