<s> from . . import ( ctan , error , local_info ) <EOL> from . import ( install , uninstall ) <EOL> def run ( package ) : <EOL> if isinstance ( package , list ) : <EOL> for pkg in package : <EOL> run ( pkg ) <EOL> return <EOL> pkg = package . lower ( ) <EOL> error . installed ( '<STR_LIT>' , pkg , fail = True ) <EOL> installed_version = local_info . get_data ( pkg ) [ <NUM_LIT:1> ] <EOL> version , _ = ctan . get_data ( pkg ) <EOL> error . updated ( package , installed_version , version , fail = True ) <EOL> uninstall . run ( package ) <EOL> install . run ( package ) </s>
