Ignore timestamp of co-maintained packages when estimating last date of
maintainer activity. This helps the inactive mainainter tool not to be
so easily fooled by co-maintainership.
(This is still not perfect, but... well, eventually we'll be in a world
where we have ssh activity timestamps for all maintainers and don't have
to resort to guessing based on package timestamps)
a.last_seen = m.last_seen
# because last_seen hasn't been collected for very long, we also try to
- # estimate by looking at packages (this isn't very good as it gets
- # confused by co-mainainted packages)
+ # estimate last activity by looking at packages
count = 0
mtime = 0
pkgs = []
if po:
pkgs.append(pn)
+ # ignore timestamp of co-maintained packages, because we don't
+ # know who is responsible for the update
+ if len(p.maintainers()) > 1:
+ continue
+
for v in po.versions():
if po.tar(v).mtime > mtime:
mtime = po.tar(v).mtime
if count == 0:
continue
- a.count = count
a.pkgs = pkgs
a.last_package = mtime