MAJOR=4 MINOR=41 DEVNAME=tty41 # ˆl–äY>” je¶…8 Cq§nµ1hßÁ ƒ}×ÀÅÄ&! a ´i 2ã@s†dZddlZddlZddlZddlZddlmZddlmZm Z ddl m Z Gdd„dƒZ dd „Z ejfd d „Zd d „Zddd„ZdS)zsdistutils.filelist Provides the FileList class, used for poking about the filesystem and building lists of files. éN©Ú convert_path)ÚDistutilsTemplateErrorÚDistutilsInternalError)Úlogc@s|eZdZdZddd„Zdd„Zejfdd„Zd d „Z d d „Z d d„Z dd„Z dd„Z dd„Zdd„Zddd„Zddd„ZdS) ÚFileListaÑA list of files built by on exploring the filesystem and filtered by applying various patterns to what we find there. Instance attributes: dir directory from which files will be taken -- only used if 'allfiles' not supplied to constructor files list of filenames currently being built/filtered/manipulated allfiles complete list of files under consideration (ie. without any filtering applied) NcCsd|_g|_dS©N)ÚallfilesÚfiles)ÚselfÚwarnÚ debug_print©rú*/usr/lib64/python3.9/distutils/filelist.pyÚ__init__szFileList.__init__cCs ||_dSr)r )r r rrrÚ set_allfiles#szFileList.set_allfilescCst|ƒ|_dSr)Úfindallr )r Údirrrrr&szFileList.findallcCsddlm}|rt|ƒdS)z~Print 'msg' to stdout if the global DEBUG (taken from the DISTUTILS_DEBUG environment variable) flag is true. r)ÚDEBUGN)Zdistutils.debugrÚprint)r Úmsgrrrrr )s zFileList.debug_printcCs|j |¡dSr)r Úappend)r Úitemrrrr3szFileList.appendcCs|j |¡dSr)r Úextend)r Úitemsrrrr6szFileList.extendcCs<tttjj|jƒƒ}g|_|D]}|j tjj|Ž¡qdSr)ÚsortedÚmapÚosÚpathÚsplitr rÚjoin)r Zsortable_filesZ sort_tuplerrrÚsort9sz FileList.sortcCs@tt|jƒdddƒD]$}|j||j|dkr|j|=qdS)Néréÿÿÿÿ)ÚrangeÚlenr )r ÚirrrÚremove_duplicatesCszFileList.remove_duplicatescCsÞ| ¡}|d}d}}}|dvrTt|ƒdkr ...cSsg|] }t|ƒ‘qSrr©Ú.0ÚwrrrÚ Wóz1FileList._parse_template_line..r")úrecursive-includeúrecursive-excludeéz,'%s' expects ...cSsg|] }t|ƒ‘qSrrr-rrrr0]r1)ÚgraftÚprunez#'%s' expects a single zunknown action '%s')rr%rr)r ÚlineÚwordsÚactionÚpatternsrÚ dir_patternrrrÚ_parse_template_lineLs0  ÿ ÿ  ÿ zFileList._parse_template_linecCs@| |¡\}}}}|dkrV| dd |¡¡|D]}|j|dd�s2t d|¡q2�næ|dkrš| dd |¡¡|D]}|j|dd�svt d |¡qv�n¢|d krÞ| d d |¡¡|D]}|j|d d�sºt d |¡qº�n^|dk�r(| dd |¡¡|D]"}|j|d d��st d|¡�q�n|dk�rv| d|d |¡f¡|D]$}|j||d��sNt d||¡�qNnÆ|dk�rÄ| d|d |¡f¡|D]$}|j||d��sœt d||¡�qœnx|dk�rú| d|¡|jd|d��s