ó Afc@s?ddlZddlZddlTd„Zd„ZeƒdS(i˙˙˙˙N(t*cCsĄy tj}Wn#tk r2dGHtjdƒnXtjdrPtjd}nd}|r“tj|ƒ|ddkr†|d}nt|ƒn tdƒdS(Ns'This system doesn't have symbolic linksiiti˙˙˙˙t/(tostreadlinktAttributeErrortsystexittargvtchdirtreportboguslinks(tdummytprefix((s3/usr/lib64/python2.7/Demo/comparisons/systemtest.pytmains      cCsŒytjdƒ}Wn)tjk r>}d|d|fGHdSX|jƒx<|D]4}|tjksP|tjkrzqPnytj|ƒt}Wn)tjk rźd|||fGHqPnXt|ƒrytj |ƒWq„tjk r d||tj |ƒfGHq„XqPt |ƒrPytj |ƒWn+tjk rY}d|||fGHqPnXzt ||dƒWdtj dƒXqPqPWdS(Nt.s%s%s: can't list: %ss%s%s: can't stat: %ss %s%s -> %ss%s%s: can't chdir: %sRs..(RtlistdirterrortsorttcurdirtpardirtlstattST_MODEtS_ISLNKtstatRtS_ISDIRR R (R tnamestmsgtnametmode((s3/usr/lib64/python2.7/Demo/comparisons/systemtest.pyR )s<    (RRRR R (((s3/usr/lib64/python2.7/Demo/comparisons/systemtest.pyts     !