update.sls: add get-source function