Changes between Initial Version and Version 1 of Ticket #62143, comment 6


Ignore:
Timestamp:
May 22, 2021, 7:29:17 AM (3 years ago)
Author:
ryandesign (Ryan Carsten Schmidt)
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #62143, comment 6

    initial v1  
    44They "work", but not in a way that seems useful to me. Since it was never documented how they were intended to work, it's unclear to me if it "works" correctly or not.
    55
    6 If you set `master_site_local http://distfiles.local/` or `patch_site_local http://distfiles.local/` then MacPorts will looks for distfiles or patchfiles there ''without adding `dist_subdir` to the end''. For example, it would try to download the distfile for the zlib port from !http://distfiles.local/zlib-1.2.11.tar.xz when you might actually want it to try to download from !http://distfiles.local/zlib/zlib-1.2.11.tar.xz if your web server is serving the contents of /opt/local/var/macports/distfiles for example.
     6If you set `master_site_local http://distfiles.local/` or `patch_site_local http://distfiles.local/` then MacPorts will look for distfiles or patchfiles there ''without adding `dist_subdir` to the end''. For example, it would try to download the distfile for the zlib port from !http://distfiles.local/zlib-1.2.11.tar.xz when you might actually want it to try to download from !http://distfiles.local/zlib/zlib-1.2.11.tar.xz if your web server is serving the contents of /opt/local/var/macports/distfiles for example.
    77
    88If you specify `master_site_local http://distfiles.local/:mirror` or `patch_site_local http://distfiles.local/:mirror` as I [comment:1 suggested earlier], then MacPorts interprets `mirror` as the name of a tag and only considers that URL when fetching distfiles that have that tag assigned (and probably no ports have a distfile with that tag which is why it doesn't end up being used). That's not what I expected or what I intended when I made that suggestion and probably nobody ever uses this behavior intentionally. Rather, I had intended for `:mirror` to be interpreted as the directive to treat this URL as a mirror and thus add `dist_subdir` to the end.