#60608 closed enhancement (duplicate)
Update MacPorts base using HTTP
Reported by: | neverpanic (Clemens Lang) | Owned by: | neverpanic (Clemens Lang) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | base | Version: | |
Keywords: | Cc: | ||
Port: |
Description
In #60590, we again noticed that our current method to update MacPorts base source code via rsync is not optimal, since we do not have automatic fallbacks to other mirrors should our main mirror be unavailable.
Additionally, the use of rsync is (a) not transport encrypted, and (b) often requires special care for the proxy configuration, while the proxy configuration for HTTP is usually already set.
Syncing the entire source code via rsync and only then checking the current version in a file in the downloaded source tree is also rather slow, compared to directly checking the current version from some online source.
We should switch to using pure HTTP to check for the current version, and then download a tarball of the new version once it is available. Obviously, the signature checking that is currently in place will need to be kept.
Change History (4)
comment:1 Changed 4 years ago by neverpanic (Clemens Lang)
comment:2 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)
Thank you for suggesting this and especially for taking the time to write the code. I haven't had time to look at the code yet.
comment:3 Changed 2 years ago by jmroot (Joshua Root)
Milestone: | MacPorts Future |
---|---|
Resolution: | → duplicate |
Status: | assigned → closed |
https://github.com/macports/macports-base/pull/184