When using more than one constraint to list specs in a binary mirror, spack buildcache list shows the same spec multiple times base on the number of constraints it satisfies.
Steps to reproduce the issue
Create a binary mirror with at least one package, for instance:
$ spack buildcache list
==> Finding buildcaches in /home/culpo/.mirror/build_cache
==> Finding buildcaches in /home/culpo/production/spack/binary-mirror/build_cache
==> Finding buildcaches in /home/culpo/production/spack/mirror/build_cache
-- linux-ubuntu18.04-broadwell / gcc@9.0.1 ----------------------
zlib@1.2.11
-- linux-ubuntu18.04-x86_64 / gcc@9.0.1 -------------------------
zlib@1.2.11
Then try to use more than on matching constraint:
$ spack buildcache list -l zlib @1.2.11
==> Finding buildcaches in /home/culpo/.mirror/build_cache
==> Finding buildcaches in /home/culpo/production/spack/binary-mirror/build_cache
==> Finding buildcaches in /home/culpo/production/spack/mirror/build_cache
-- linux-ubuntu18.04-broadwell / gcc@9.0.1 ----------------------
os3djb5 zlib@1.2.11 os3djb5 zlib@1.2.11
-- linux-ubuntu18.04-x86_64 / gcc@9.0.1 -------------------------
tn4qvs7 zlib@1.2.11 tn4qvs7 zlib@1.2.11
As the output above shows the same spec is displayed twice.
Error Message
No error message, just wrong output displayed to tty.
Information on your system
Not relevant.
When using more than one constraint to list specs in a binary mirror,
spack buildcache listshows the same spec multiple times base on the number of constraints it satisfies.Steps to reproduce the issue
Create a binary mirror with at least one package, for instance:
Then try to use more than on matching constraint:
As the output above shows the same spec is displayed twice.
Error Message
No error message, just wrong output displayed to
tty.Information on your system
Not relevant.