Opened 8 years ago
Last modified 7 years ago
#12905 closed bug
package_repo requires a url in repo-info file which needs eval — at Version 3
Reported by: | kallisti5 | Owned by: | nobody |
---|---|---|---|
Priority: | normal | Milestone: | R1/beta1 |
Component: | Kits/Package Kit | Version: | R1/Development |
Keywords: | package_repo | Cc: | |
Blocked By: | Blocking: | ||
Platform: | All |
Description (last modified by )
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:
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
Change History (3)
comment:1 by , 8 years ago
comment:2 by , 8 years ago
It seems like BRepositoryConfig should be constructed with the repo URL from the URL the user or system already has vs needing a second copy from the repo itself.
comment:3 by , 8 years ago
Description: | modified (diff) |
---|
So BRepositoryConfig's fBaseURL, PackagesURL(), and BaseURL() use it...
Since the user provides the repo URL to gain access to the repo, it all seems extremely illogical to then re-read the repo config file and potentially re-adjust where the repo is?