Opened 4 years ago
#60757 new defect
Print already completed phases
Reported by: | ryandesign (Ryan Carsten Schmidt) | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | base | Version: | 2.6.2 |
Keywords: | Cc: | ||
Port: |
Description
It might help reduce 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 add color support to the cli then the lines for skipped phases could be printed in gray to de-emphasize them.
Note: See
TracTickets for help on using
tickets.