Opened 6 years ago

Closed 6 years ago

#13888 closed task (fixed)

HaikuDepot should Couple Local Repositories with Server Repositories via the "repo.info" Url

Reported by: apl-haiku Owned by: stippi
Priority: normal Milestone: Unscheduled
Component: Applications/HaikuDepot Version: R1/Development
Keywords: server repository repo.info Cc:
Blocked By: Blocking:
Platform: All

Description

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;

` https://eu.hpkg.haiku-os.org/haikuports/master/repository/x86_gcc2/current `

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.

Change History (1)

comment:1 by KapiX, 6 years ago

Resolution: fixed
Status: newclosed

Fix applied in hrev52072.

Note: See TracTickets for help on using tickets.