HaikuDepot should Couple Local Repositories with Server Repositories via the "repo.info" Url
|Reported by:||apl-haiku||Owned by:||stippi|
|Keywords:||server repository repo.info||Cc:|
|Has a Patch:||no||Platform:||All|
Currently the HaikuDepot desktop application is associating local repositories with the server repositories by using the URL that is configured to access the repository. For example, in the case of HaikuPorts this would be;
This URL is available from the server in the 'bulk dump' of repositories. If this URL changes (as it has done recently) or mirrors are introduced then this associating-mechanic breaks. Instead a unique-identifier for the repository is required. Just such a thing is available on each repository in the
repo.info file in the
url field. Note that this is not actually a "url", but a unique identifier.
This is now available in the 'bulk dump' from the server in the DTO model class
DumpExportRepositorySource on the field
fRepoInfoUrl. Unfortunately C++ side this is not easily available at the present time; it should be in
BRepositoryConfig but is not.
... at any rate, you should be able to fetch the repo.info yourself.
I would like to avoid doing this because it will prolong the existing bulk-load process.
A solution needs to be found for this and necessary changes in
RepositoryDataUpdateProcess made to use the unique identifier rather than the download URL.