port install/upgrade timestamps

Jeremy Lavergne jeremy at lavergne.gotdns.org
Tue Feb 21 11:16:18 PST 2012


> 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.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 8796 bytes
Desc: not available
URL: <http://lists.macosforge.org/pipermail/macports-dev/attachments/20120221/96eebc06/attachment-0001.bin>


More information about the macports-dev mailing list