<s> """<STR_LIT>""" <EOL> import os <EOL> from Bcfg2 . Client . Tools . POSIX . base import POSIXLinkTool <EOL> class POSIXSymlink ( POSIXLinkTool ) : <EOL> """<STR_LIT>""" <EOL> __linktype__ = "<STR_LIT>" <EOL> def _verify ( self , entry ) : <EOL> sloc = os . readlink ( entry . get ( '<STR_LIT:name>' ) ) <EOL> if sloc != entry . get ( '<STR_LIT:to>' ) : <EOL> entry . set ( '<STR_LIT>' , sloc ) <EOL> return False <EOL> return True <EOL> def _link ( self , entry ) : <EOL> return os . symlink ( entry . get ( '<STR_LIT:to>' ) , entry . get ( '<STR_LIT:name>' ) ) </s>
