add write_zypper_repo function