[Bug 261555] 410.pkg-audit: suggested patch to improve expiry by handling anticongestion delay better

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 29 Jan 2022 15:23:38 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=261555

            Bug ID: 261555
           Summary: 410.pkg-audit: suggested patch to improve expiry by
                    handling anticongestion delay better
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: wbe@psr.com

Created attachment 231429
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=231429&action=edit
suggested patch to make expiry handle anticongestion delay better

In 410.pkg-audit, ${security_status_pkgaudit_expiry} is clearly trying to be
how often the test is run, in days (e.g., 2).  vuln.xml gets written after the
up-to-60 minute anticongestion sleep time on the day it is fetched.  Current
code uses a fixed 10 minute grace period.  Since that's less than the up-to-60
minute anticongestion sleep time, the result is that differences of N days
minus (11+ minutes) results in (N+1) days between fetches.

The patch uses ${anticongestion_sleeptime} instead of 600 and improves the
comment.

-- 
You are receiving this mail because:
You are the assignee for the bug.