Implement %file. There was code there, sort of, but it was a broken copy of the repo support code.