Opened 10 days ago

Closed 9 days ago

Last modified 9 days ago

#70973 closed defect (fixed)

base: curl isnewer failed on some mirror sites due to no user-agent set

Reported by: thelastlin (Xavier Hsinyuan) Owned by: Xavier Hsinyuan <me@…>
Priority: Normal Milestone: MacPorts Future
Component: base Version: 2.10.1
Keywords: haspatch Cc:
Port:

Description

port selfupdate might issue a warning about unable to check updates for portfiles with some mirror sites since the mirror deny all requests without a useragent.

It's known that https://mirrors.tuna.tsinghua.edu.cn by TUNA don't accept requests without useragent recently.

Workaround for MacPorts: set a useragent for curl isnewer (GitHub:PR#349)

Change History (3)

comment:1 Changed 10 days ago by ryandesign (Ryan Carsten Schmidt)

Keywords: haspatch added; curl isnewer selfupdate removed

comment:2 Changed 9 days ago by Xavier Hsinyuan <me@…>

Owner: set to Xavier Hsinyuan <me@…>
Resolution: fixed
Status: newclosed

In c39ccfb594ae91ae24c6f93510bffac7b28c4979/macports-base (master):

Set a user-agent for curl isnewer

Fix sync warning about checking update failed due to rejected
connection without a user-agent on some mirrors.

The user-agent for curl isnewer is conform #40319.

Closes: #70973

comment:3 Changed 9 days ago by jmroot (Joshua Root)

Milestone: MacPorts Future
Note: See TracTickets for help on using tickets.