l.a.n.TarFileDateChecker : class documentation

Part of lp.archiveuploader.nascentuploadfile View In Hierarchy

Verify all files in a tar in a deb are within a given date range.

This was taken from jennifer in the DAK suite.

Method __init__ Setup timestamp limits
Method reset Reset local values.
Method callback Callback designed to cope with apt_inst.TarFile.go.
Method check_cutoff Check the timestamp details of the supplied file.
def __init__(self, future_cutoff, past_cutoff):
Setup timestamp limits
def reset(self):
Reset local values.
def callback(self, member, data):
Callback designed to cope with apt_inst.TarFile.go.

It check and store timestamp details of the extracted DEB.

def check_cutoff(self, name, mtime):
Check the timestamp details of the supplied file.

Store the name of the file with its mtime timestamp if it's outside the required date range.

API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.