Add sanity checks in the repo update process.
First draft of the repo schema.