Here's a clever way to know if any updates have happened since the last time we ...
Dan Langille @dvl@bsd.network
Here's a clever way to know if any updates have happened since the last time we ran. Run an md5 over all the active port for name, version, revision, epoch....
It's a fast query: about 1.3 seconds.
I'm not using it for anything. It's just something that came up...
freshports.dev=# SELECT md5(string_agg(category || '/' || name || ' ' || version ||
coalesce('_' || revision, '') ||
coalesce(',' || portepoch, ''), E'\n' ORDER BY category, name))
FROM ports_active;
md5
----------------------------------
88d6a009e0bfc523a56e896cae43dc23
(1 row)
freshports.dev=#