Prison sentences, fines, comunity service, etc are already a deterrent to crime. These deterrents (and punishments) are considered proportionate to the crime by the judge/jury. I see no reason to single out rioting to be different, apart from emotional ones.