[MacPorts] #60757: Print already completed phases

MacPorts noreply at macports.org
Fri Jul 3 03:21:46 UTC 2020


#60757: Print already completed phases
------------------------+--------------------
 Reporter:  ryandesign  |      Owner:  (none)
     Type:  defect      |     Status:  new
 Priority:  Normal      |  Milestone:
Component:  base        |    Version:  2.6.2
 Keywords:              |       Port:
------------------------+--------------------
 It might help reduce [ticket:60756 user confusion] if we printed every
 phase, even those that were already completed.

 For example, we currently print:

 {{{
 --->  Fetching archive for p5.30-mozilla-ca
 --->  Attempting to fetch p5.30-mozilla-ca-
 20200520_0.darwin_19.noarch.tbz2 from https://packages.macports.org/p5.30
 -mozilla-ca
 --->  Attempting to fetch p5.30-mozilla-ca-
 20200520_0.darwin_19.noarch.tbz2 from
 http://lil.fr.packages.macports.org/p5.30-mozilla-ca
 --->  Attempting to fetch p5.30-mozilla-ca-
 20200520_0.darwin_19.noarch.tbz2 from
 http://nue.de.packages.macports.org/p5.30-mozilla-ca
 --->  Verifying checksums for p5.30-mozilla-ca
 Error: Checksum (rmd160) mismatch for Mozilla-CA-20200520.tar.gz
 }}}

 This makes it look like the file whose checksums couldn't be verified is
 the binary archive that we couldn't download, when in fact it's the
 distfile that was already downloaded on a previous run.

 What if we changed the output like this:

 {{{
 --->  Fetching archive for p5.30-mozilla-ca
 --->  Attempting to fetch p5.30-mozilla-ca-
 20200520_0.darwin_19.noarch.tbz2 from https://packages.macports.org/p5.30
 -mozilla-ca
 --->  Attempting to fetch p5.30-mozilla-ca-
 20200520_0.darwin_19.noarch.tbz2 from
 http://lil.fr.packages.macports.org/p5.30-mozilla-ca
 --->  Attempting to fetch p5.30-mozilla-ca-
 20200520_0.darwin_19.noarch.tbz2 from
 http://nue.de.packages.macports.org/p5.30-mozilla-ca
 --->  Fetching distfiles for p5.30-mozilla-ca already completed
 --->  Verifying checksums for p5.30-mozilla-ca
 Error: Checksum (rmd160) mismatch for Mozilla-CA-20200520.tar.gz
 }}}

 If we [ticket:56022 add color support to the cli] then the lines for
 skipped phases could be printed in gray to de-emphasize them.

-- 
Ticket URL: <https://trac.macports.org/ticket/60757>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list