removed write_zypper_repo function and changed code to use 'write_file' function instead