#52928 closed defect (fixed)
`port info --line` produces multi-line output
Reported by: | raimue (Rainer Müller) | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | MacPorts 2.4.0 |
Component: | base | Version: | 2.3.5 |
Keywords: | Cc: | neverpanic (Clemens Lang), mojca (Mojca Miklavec) | |
Port: |
Description
The multi-valued maintainers released with 2.3.5 broke the output of port info --line
, which can now produce multiple lines per port.
$ port info --line --maintainers nginx Email: cal@macports.org Email: mps@macports.org Policy: openmaintainer
This should produce only a single line.
Change History (9)
comment:1 Changed 8 years ago by raimue (Rainer Müller)
Milestone: | → MacPorts 2.3.6 |
---|
comment:2 Changed 8 years ago by raimue (Rainer Müller)
comment:3 Changed 8 years ago by neverpanic (Clemens Lang)
I noticed this while implementing this, but the output is equally broken for other fields that contain linebreaks, e.g.:
$ port info --name --version --long_description moreutils version: 0.59 long_description: moreutils includes the following utilities: - chronic: runs a command quietly unless it fails […] - zrun: automatically uncompress arguments to command name: moreutils
$ port info --line --long_description moreutils moreutils includes the following utilities: - chronic: runs a command quietly unless it fails […] - zrun: automatically uncompress arguments to command
How should we deal with those?
comment:4 Changed 8 years ago by mojca (Mojca Miklavec)
Cc: | mojca added |
---|
comment:5 Changed 8 years ago by raimue (Rainer Müller)
Pull Request: https://github.com/macports/macports-base/pull/8
comment:6 Changed 8 years ago by raimue (Rainer Müller)
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:9 Changed 8 years ago by jmroot (Joshua Root)
Milestone: | MacPorts 2.3.6 → MacPorts 2.4.0 |
---|
Ticket retargeted after milestone deleted
Note: See
TracTickets for help on using
tickets.
As a follow-up, this output does not look good either. It should be one line per field.