[haiku-commits] Re: haiku: hrev52316 - src/data/repository_infos

  • From: "Alexander von Gluck IV" <kallisti5@xxxxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sat, 08 Sep 2018 14:23:46 +0000

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.

Ah, that makes sense.  When I decided on these paths last night, I figured it 
would be easy to
point depot at hpkg.haiku-os.org/blah and simply redirect it to 
eu.hpkg.haiku-os.org. This 
would keep all the mirrors straight.  Is this still needed?

I did update the repo urls on depot.haiku-os.org last night to eu.hpkg.... and 
everything seems
to be working fine.

* 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.

Ah.. that's a great idea. 

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.

Ah  yeah, waddlesplash pointed this recent change out to me in irc.

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.

Nice!

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.

No worries. Things are actually working well, and the new depot containers are 
working *really*
well. Nice work!


 -- Alex

Other related posts: