[Bug 227482] prevent adding a repository without a target