<s> from kokki import Execute , File , Fail <EOL> apt_list_path = '<STR_LIT>' <EOL> apt = None <EOL> if env . system . platform == "<STR_LIT>" : <EOL> ver = env . system . lsb [ '<STR_LIT>' ] <EOL> if ver == "<STR_LIT>" : <EOL> apt = "<STR_LIT>" <EOL> elif ver in ( "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) : <EOL> apt = "<STR_LIT>" <EOL> elif env . system . platform == "<STR_LIT>" : <EOL> ver = env . system . lsb [ '<STR_LIT>' ] <EOL> if ver == '<STR_LIT>' : <EOL> apt = "<STR_LIT>" <EOL> if not apt : <EOL> raise Fail ( "<STR_LIT>" ) <EOL> Execute ( "<STR_LIT>" , <EOL> command = "<STR_LIT>" , <EOL> action = "<STR_LIT>" ) <EOL> Execute ( "<STR_LIT>" , <EOL> not_if = "<STR_LIT>" ) <EOL> File ( apt_list_path , <EOL> owner = "<STR_LIT:root>" , <EOL> group = "<STR_LIT:root>" , <EOL> mode = <NUM_LIT:0> <NUM_LIT> , <EOL> content = apt + "<STR_LIT:\n>" , <EOL> notifies = [ ( "<STR_LIT>" , env . resources [ "<STR_LIT>" ] [ "<STR_LIT>" ] , True ) ] ) </s>
