Do not host empty repos
|Target version:||swap repos with Bluetooth and Bonjour|
You can currently enable the webserver when there are no APKS and no index in the repo yet. This happens when the app is first installed and no applications have yet been included into the repo.
Either the workflow UX should change to not display the webserver control button until appropriate or the button should display indication that the user needs to create a repo before turning the webserver on.
create initial repo with only FDroid in it
This automatically creates a repo with only FDroid in it the first time the
user goes to the Local Repo view. Having an empty repo is useless if the
user is trying to swap with someone. Having FDroid in there is not a
privacy leak since FDroid is needed for the swap process, and it will then
enable people to automatically get updates from each other, and do the
bootstrap process from the web browser.