[haiku-bugs] Re: [Haiku] #12905: package_repo requires a url in repo-info file which needs eval

  • From: "kallisti5" <trac@xxxxxxxxxxxx>
  • Date: Wed, 10 Aug 2016 03:51:59 -0000

#12905: package_repo requires a url in repo-info file which needs eval
---------------------------+----------------------------
   Reporter:  kallisti5    |      Owner:  nobody
       Type:  enhancement  |     Status:  new
   Priority:  normal       |  Milestone:  Unscheduled
  Component:  - General    |    Version:  R1/Development
 Resolution:               |   Keywords:  package_repo
 Blocked By:               |   Blocking:
Has a Patch:  0            |   Platform:  All
---------------------------+----------------------------
Description changed by kallisti5:

Old description:

package_repo requires a url in the repo-file.

This really doesn't make sense.  You're always going to know the repo's
base url... so why would you need to specify it while building the repo?

This makes repo creation a lot more complex than it needs to be... I also
haven't been able to find anywhere the repo.info url is actually used.
(don't get a packages's URL mixed up the internal repo url)

Example:

URL: http://packages.haiku-
os.org/haikuports/master/repo/x86_64/c623cf2b4d85bc452d5a21a2586e552fe1b04f6d66eca0663f257461c106db9f/repo.info

{{{
name HaikuPorts
vendor "Haiku Project"
summary "The HaikuPorts repository (for Haiku hrev50482)"
priority 1
url http://packages.haiku-
os.org/haikuports/master/repo/x86_64/c623cf2b4d85bc452d5a21a2586e552fe1b04f6d66eca0663f257461c106db9f
architecture x86_64
}}}

New description:

 package_repo requires a url in the repo-file. (the repo-info file is read
 in by package_repo to build the binary on-disk repo which is then served
 by http)

 This really doesn't make sense.  You're always going to know the repo's
 base url... so why would you need to specify it while building the repo?

 This makes repo creation a lot more complex than it needs to be... I also
 haven't been able to find anywhere the repo.info url is actually used.
 (don't get a packages's URL mixed up the internal repo url)

 Example:

 URL: http://packages.haiku-
 
os.org/haikuports/master/repo/x86_64/c623cf2b4d85bc452d5a21a2586e552fe1b04f6d66eca0663f257461c106db9f/repo.info

 {{{
 name HaikuPorts
 vendor "Haiku Project"
 summary "The HaikuPorts repository (for Haiku hrev50482)"
 priority 1
 url http://packages.haiku-
 
os.org/haikuports/master/repo/x86_64/c623cf2b4d85bc452d5a21a2586e552fe1b04f6d66eca0663f257461c106db9f
 architecture x86_64
 }}}

--

--
Ticket URL: <https://dev.haiku-os.org/ticket/12905#comment:3>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: