September 8, 2018 12:42 AM, "Andrew Lindesay" <apl@xxxxxxxxxxxxxx> wrote:
HaikuDepot will lookup "hpkg.haiku-os.org/blah" no matter what base-url is
used,
and will always find a match no matter what mirror you're using.
...
In the future, we can adjust HaikuDepot to look at url instead of base-url.There is some legacy code that still works off "baseUrl" because (as you have
noted) it was not
possible to change the on-host "repository_info" files on existing client
systems; this will be
removed soon though and at that time I will have to communicate the change
and advise older users
to update their local repository configuration.
So HDS and HD should be fully able to support mirrors now.
* url is the "identification url" (Still wished this was 'id' and a UUID)
As there are so many moving parts, changing from "url" to "id" globally would
be difficult to
coordinate, but I very much agree with the notion that the "url" identifier
field should be
abstract and not a real URL. Something like "hpkr:/haikuports/x86_gcc2/beta1"
or similar would be
less confusing.
HaikuDepot uses the base-url to "match locally configured repositories and
depot.haiku-os.org
repos"
That is not correct; it is able to still use the "base-url" to match for
legacy installs, but
*actually* it should be using the "url" for all recent installations. See my
changes in
3b17d8dd7f1f25ad91f64ea12770200043d56af1.
In the future, we can adjust HaikuDepot to look at url instead of base-url.
That is already done and it is using "url" instead of "base-url" in general,
except for some legacy
code.
and will always find a match no matter what mirror you're using.
As long as the "url" (identifier) is configured on the local Haiku
installation to match the one on
the remote network-accessible repository's "info.repo" then it should be
working for mirrors
already.