Save subpackge source string in file