- enabled adding new repositories

- added option to specify repository target platform
- 2.17.40
Shouldn't `repos` also be assigned to in this `else` branch if the `then` branch does it?