efk dZddlZddlZddlmZddlmZddlm Z dZ dZ e fd Z d d Z eje e ZdS)z2Timestamp comparison of files and groups of files.N)DistutilsFileError) zip_strict)splatctj| p?tj|tj|kSN)ospathexistsgetmtimesourcetargets /builddir/build/BUILD/imunify360-venv-2.3.5/opt/imunify360/venv/lib/python3.11/site-packages/setuptools/_distutils/_modified.py_newerr sHw~~f%% %    27#3#3F#;#;;ctj|s/tdtj|zt ||S)z Is source modified more recently than target. Returns True if 'source' is modified more recently than 'target' or if 'target' does not exist. Raises DistutilsFileError if 'source' does not exist. zfile '%s' does not exist)r r r rabspathrr s rnewerrsM 7>>& ! !W !;bgoof>U>U!UVVV && ! !!rctt|t||}tt t t |pggfS)a1 Filter filenames where sources are newer than targets. Walk two filename iterables in parallel, testing if each source is newer than its corresponding target. Returns a pair of lists (sources, targets) where source is newer than target, according to the semantics of 'newer()'. )filterrrtuplemaplistzip)sourcestargetsr newer_pairss rnewer_pairwiser sIuz'7'C'CDDK T3 ,-- . . :2r(:rerrorcfddkrtjjnd}tfdt ||DS)a Is target out-of-date with respect to any file in sources. Return True if 'target' is out-of-date with respect to any file listed in 'sources'. In other words, if 'target' exists and is newer than every file in 'sources', return False; otherwise return True. ``missing`` controls how to handle a missing source file: - error (default): allow the ``stat()`` call to fail. - ignore: silently disregard any missing source files. - newer: treat missing source files as "target out of date". This mode is handy in "dry-run" mode: it will pretend to carry out commands that wouldn't work because inputs are missing, but that doesn't matter because dry-run won't run the commands. cPdkotj| S)Nr)r r r )rmissings rmissing_as_newerz%newer_group..missing_as_newer>s$'!@"'..*@*@&@@rignoreNc3NK|]}|pt|V dSr)r).0rr$rs r znewer_group..BsQ    :F66$:$:r)r r r anyr)rrr#ignoredr$s `` @r newer_groupr+-s"AAAAA!(8 3 3bgnnG Wg..  r)r)r )__doc__ functoolsos.pathr errorsr py39compatr _functoolsrrrrr+partialnewer_pairwise_grouprrr5s88&&&&&&"""""" " " ",1 ; ; ; ;6)y({KKKr