> Is there any data created by MacPorts that could be used in determining the 
> first install date and last install/upgrade date for an installed port?
> 
> Or a logging facility for port install, upgrade, activate, deactivate and 
> uninstall?

To a degree, the registry has some date information:

CREATE TABLE files (id INTEGER, path TEXT, actual_path TEXT, active INT, mtime 
DATETIME, md5sum TEXT, editable INT, FOREIGN KEY(id) REFERENCES ports(id));

CREATE TABLE ports (id INTEGER PRIMARY KEY AUTOINCREMENT, name TEXT COLLATE 
NOCASE, portfile CLOB, url TEXT, location TEXT, epoch INTEGER, version TEXT 
COLLATE VERSION, revision INTEGER, variants TEXT, negated_variants TEXT, state 
TEXT, date DATETIME, installtype TEXT, archs TEXT, requested INT, os_platform 
TEXT, os_major INTEGER, UNIQUE (name, epoch, version, revision, variants), 
UNIQUE (url, epoch, version, revision, variants));

Unfortunately, at least in 2.0.3, the files table always has mtime set to 0. 
Though the ports table indicates the "oldest" port on my system was installed 
April 1, 2011.

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
macports-dev mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macports-dev

Reply via email to