Opened 7 weeks ago

Closed 7 weeks ago

Last modified 3 weeks 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 2.10.2
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 (5)

comment:1 Changed 7 weeks ago by ryandesign (Ryan Carsten Schmidt)

Keywords: haspatch added; curl isnewer selfupdate removed

comment:2 Changed 7 weeks 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 7 weeks ago by jmroot (Joshua Root)

Milestone: MacPorts Future

comment:4 Changed 3 weeks ago by jmroot (Joshua Root)

Milestone: MacPorts FutureMacPorts 2.10.3

comment:5 Changed 3 weeks ago by jmroot (Joshua Root)

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