Opened 19 years ago

Closed 17 years ago

Last modified 15 years ago

#8235 closed enhancement (wontfix)

RFE: a LastModified field could be added to "port info" output

Reported by: ray@… Owned by: macports-tickets@…
Priority: Low Milestone:
Component: base Version:
Keywords: Cc: ray@…
Port:

Description

If one goes to the port script, one can find the line:

if {[info exists portinfo(maintainers)]} { puts "Maintainers: $portinfo(maintainers)"}

One can then paste this in after that:

# find last update date, check for freshness set pfile [open [file normalize [darwinports::getportdir $portinfo(porturl)]]/Portfile] gets $pfile topLine close $pfile set result [regexp {(Portfile,v) ([0-9]+\.[0-9]+) ([0-9][0-9][0-9][0-9]/[0-9][0-9]/[0-9][0-9] [0-9][0-9]:[0-9][0-9]:[0-9][0-9])} $topLine m1 m2 m3 m4] puts "LastModified: $m4"

Then, for example:

% port info render render 0.9, x11/render http://fontconfig.org/

{X Render Extension headers and documentation}

Build Dependencies: pkgconfig Platforms: darwin Maintainers: blb@… LastModified: 2005/10/19 08:10:17 %

I know the regular expression is non-optimal, but considering that I wrote my first bit of tcl about twenty minutes ago, I am ok with it.

Also, it would be better if, when the information from the Portfile is first read, this information was put into the portinfo array, but my tcl is not there yet, and this works.

Change History (6)

comment:1 Changed 18 years ago by markd@…

Type: defectenhancement

comment:2 Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ray@… added
Milestone: Needs developer review
Priority: ExpectedNice to have

Not sure if modification date is particularly useful for portfiles. It's very possible to have portfiles modified but no significant changes made. For example, I recently did a sweep where I added the Subversion keyword Id to all portfiles. Some portfiles that got touched may not have been otherwise updated in years; I don't know; I didn't check. Another recent sweep was made to delete old maintainers. If your reason for wanting to see the modification date is that you want to know if the port is current or if it works, then I'm saying that it would be a poor indicator. If you have another reason for wanting to see the last modified date, let us know. But whatever the reason, you could also get at that information by using, for example:

ls -l `port file THE_PORT_NAME`

comment:3 Changed 17 years ago by jmpalacios (Juan Manuel Palacios)

Milestone: Needs developer reviewMacPorts base bugs

Milestone Needs developer review deleted

comment:4 Changed 17 years ago by nox@…

Milestone: MacPorts base bugsMacPorts base enhancements
Priority: Nice to haveLow
Summary: a LastModified field could be added to "port info" outputRFE: a LastModified field could be added to "port info" output
Version: 1.2

comment:5 Changed 17 years ago by nox@…

Resolution: wontfix
Status: newclosed

just use the command given by Ryan, or port cat <portname> | head -n 1

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

Milestone: MacPorts Future
Note: See TracTickets for help on using tickets.