repo_basedir
char *repo_basedir(const struct repo *, int);
path = repo_basedir(rp, 0);
altpath = repo_basedir(rp, 1);