Opened 15 years ago

Last modified 10 years ago

#21725 new enhancement

Output from 'port' should show repository information

Reported by: miken32 (Michael Newton) Owned by: macports-tickets@…
Priority: Normal Milestone: MacPorts Future
Component: base Version:
Keywords: Cc: kurthindenburg (Kurt Hindenburg)
Port:

Description

If I have a local repository set up and I run 'port list gimp2' I see something like this:

$ port list gimp2
gimp2                          @2.6.7          graphics/gimp2
gimp2                          @2.6.7          graphics/gimp2

It would be nice if it showed which repository each port was associated with. Further, when I do a 'port install gimp2' it should say which port it's working with.

Attachments (1)

portlist.diff (2.1 KB) - added by kurthindenburg (Kurt Hindenburg) 10 years ago.

Download all attachments as: .zip

Change History (9)

comment:1 Changed 15 years ago by jmroot (Joshua Root)

Milestone: MacPorts Future

comment:2 Changed 10 years ago by kurthindenburg (Kurt Hindenburg)

Cc: khindenburg@… added

Cc Me!

comment:3 Changed 10 years ago by kurthindenburg (Kurt Hindenburg)

I agree this would be nice for developers - not sure how many "normal" users have multiple repos.

Also note that this will increase the output a lot depending on how it is implemented - especially if it is used when "all" is given.

Examples:

ntop                           @5.0.1          net/ntop 1 file:///Volumes/Projects/OtherSoftware/mports.local.testing/net/ntop
ntop                           @5.0.1          net/ntop 2 file:///Volumes/Projects/OtherSoftware/macports-trunk/dports/net/ntop
ntop                           @5.0.1          net/ntop [1]
ntop                           @5.0.1          net/ntop [2]

0: file:///Volumes/Projects/OtherSoftware/mports.local/net/ntop
1: file:///Volumes/Projects/OtherSoftware/mports.local.testing/net/ntop
2: file:///Volumes/Projects/OtherSoftware/macports-trunk/dports/net/ntop

Changed 10 years ago by kurthindenburg (Kurt Hindenburg)

Attachment: portlist.diff added

comment:4 Changed 10 years ago by kurthindenburg (Kurt Hindenburg)

I changed to only show extra info if used with -v; the * indicates what which port will be used.

$ sudo port list ntop               
ntop                           @5.0.1          net/ntop
ntop                           @5.0.1          net/ntop

$ sudo port -v list ntop           
ntop                           @5.0.1          net/ntop [1]*
ntop                           @5.0.1          net/ntop [2]
0:file:///Users/kurthindenburg/macports/macports-khindenburg/ports/
1:file:///Users/kurthindenburg/macports/mports.local.testing
2:file:///Users/kurthindenburg/macports/macports-trunk/dports

comment:5 Changed 10 years ago by mf2k (Frank Schima)

Summary: Output from 'port' should show repository informationOutput from 'port installed' should show repository information
Version: 1.8.1

Given that the output of port list has nothing to do with the user's installation, it is port installed that could use the enhancement. See the FAQ on this.

comment:6 Changed 10 years ago by kurthindenburg (Kurt Hindenburg)

I'm not sure I agree that 'port list' shouldn't have this when -v given.

The original ticket was for better output explaining where each of the Portfile was located and which would be installed if the user installs it.

% port list ntop                                                                                               
ntop                           @5.0.1          net/ntop
ntop                           @5.0.1          net/ntop
% port installed ntop                                                                                             
None of the specified ports are installed.

comment:7 Changed 10 years ago by jmroot (Joshua Root)

Summary: Output from 'port installed' should show repository informationOutput from 'port' should show repository information

Yeah, this has nothing to do with port installed.

Last edited 10 years ago by jmroot (Joshua Root) (previous) (diff)

comment:8 Changed 10 years ago by mf2k (Frank Schima)

OK. Sorry for the noise.

Note: See TracTickets for help on using tickets.