a29341c2b2
Enforce restrictions on open_repository() to avoid loading invalid repository (damaged, etc). This will probably expose some new bugs that will be promptly killed.