Skip to content

add 2 new columns "main pkg" + "main pkg ver" in output of butido db jobs #427

@christophprokop

Description

@christophprokop

currently the output of butido db jobs -p mpfr -L 5 looks like this

$ butido db jobs -p mpfr -L 5
┌──────────────────────────────────────┬──────────────────────────────────────┬─────────────────────┬────────┬─────┬─────────┬─────────┬────────┬──────┐
│ Submit                               │ Job                                  │ Time                │ Host   │ Ok? │ Package │ Version │ Distro │ Type │
├──────────────────────────────────────┼──────────────────────────────────────┼─────────────────────┼────────┼─────┼─────────┼─────────┼────────┼──────┤
│ d1cbd532-e400-4c1a-bbc6-074f80ddd538 │ cb6d8b5e-6395-42f3-bf3a-9434482d3b13 │ 2024-09-16 10:54:29 │ bonnie │ yes │ mpfr    │ 4.2.0   │ rh8    │ RPM  │
│ 90d69809-e822-4a29-b554-3bf79ac794e8 │ b62a1613-dc8c-41fe-b051-471941a03de5 │ 2024-09-23 21:25:44 │ emma   │ yes │ mpfr    │ 4.2.0   │ rh7    │ RPM  │
│ 00000000-0000-0000-0000-000000000260 │ cd578649-1218-40b5-a2b7-f32f41b2780c │ 2024-09-23 22:09:26 │ bonnie │ yes │ mpfr    │ 4.2.0   │ rh8    │ RPM  │
│ 65d26a6e-624a-413d-9ed0-b7bbe4aa2910 │ 29b42057-d3a1-4225-975b-91d8e57fa6cf │ 2024-10-02 08:56:01 │ emma   │ yes │ mpfr    │ 4.2.0   │ rh8    │ RPM  │
│ 00000000-0000-0000-0000-000000000267 │ bd8aca3a-b33f-4fa9-9077-4612714c6b80 │ 2024-10-07 21:50:09 │ bonnie │ yes │ mpfr    │ 4.2.0   │ rh8    │ RPM  │
└──────────────────────────────────────┴──────────────────────────────────────┴─────────────────────┴────────┴─────┴─────────┴─────────┴────────┴──────┘

mpfr is never built as a "main target" but (almost always) as a dependency of (different versions of) gcc builds.
It would be useful to list the "main pkg" and "main pkg ver" to get a better overview in which context a dependency was built.
The data could currently be viewed via:
$ butido db submit d1cbd532-e400-4c1a-bbc6-074f80ddd538
But this way is tedious for multiple builds.

To be consistent with the other column names we might also switch from "Package" to "pkg" and from "Version" to "ver".
Also all header entries might as well be in lower case.
The new headers would be "main pkg" and "main pkg ver".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions