* added 'reinstall' to get_stateicon_of_pkg()