[MacPorts] #71578: port selfupdate: Print warning when port sync is delayed

MacPorts noreply at macports.org
Wed Dec 18 01:07:41 UTC 2024


#71578: port selfupdate: Print warning when port sync is delayed
---------------------------+---------------------
  Reporter:  Dave-Allured  |      Owner:  admin@…
      Type:  enhancement   |     Status:  new
  Priority:  Normal        |  Milestone:
 Component:  base          |    Version:
Resolution:                |   Keywords:
      Port:                |
---------------------------+---------------------

Comment (by Dave-Allured):

 Replying to [comment:1 ryandesign]:
 > How do you propose that MacPorts base should know whether an outdated
 ports collection received via `sync` or `selfupdate` is due to a normal
 delay or a server outage or other problem?

 I am not proposing that base can know the cause.  I am proposing only a
 threshold before printing the warning message.  Whenever `selfupdate` is
 run, base should be able to do something like query time stamps on remote
 target files such as `ports.tar.gz` or `PortIndex`.  From that, calculate
 time elapsed to current wall clock.  This gives current sync delay on the
 remote, right?  Then apply a low threshold, something like 60 or 120
 minutes.  Print warning whenever that threshold is exceeded.

 > Or are you merely suggesting that `selfupdate` and `sync` tell the user
 how out of date the files they received are so that the user can make
 their own inferences?

 Yes, that plus a little more guidance printed, such as "Do not report a
 problem unless delay is longer than 8 hours".

-- 
Ticket URL: <https://trac.macports.org/ticket/71578#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list