[haiku-commits] Re: haiku: hrev50723 - src/tools/get_package_dependencies src/kits/package src/tools/create_repository_config build/jam src

  • From: kallisti5 <kallisti5@xxxxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Fri, 02 Dec 2016 08:39:31 -0600

On 2016-12-02 03:20, Axel Dörfler wrote:

Am 02/12/2016 um 07:41 schrieb kallisti5@xxxxxxxxxxx:
  * Once this stuff smooths out, we'll add UUID's to the
    repo definitions for duplicate repo detection.

Why didn't we simply take the URL as "pseudo" URL, ie. as identifier
that does not reflect the actual URL? Much more pleasant to look at
than a UUID, anyway.

Mostly because it's confusing to have url variables in code around
repositories that aren't actually the URL the repo lives at :-)

There were pieces of code that actually used those URL's to determine
where a repo was at even though the HaikuPorts url's contained things
like hrevXXX/dummy.

You actually never "see" the uuid anywhere except debug output and
it provides an industry standard random and unique identifier.

At the end of the day, we really don't care about where the repo used
to live, we just care if we've added multiple copies of it.

With that said, we could re-introduce the URL to the repos as more
of a descriptive field (and not a required one that's used in the
core of our repo code)? (aka, repo vendor http://haiku-os.org)

Lets keep this stuff simple as we can :-)

 -- Alex

Other related posts: