def pre_upgrade(name):
 if (name not in _tracker['pre_upgrade']):
  return False
 return _tracker['pre_upgrade'][name]

def pre_upgrade ( name ) : if ( name not in _tracker [ 'pre_upgrade' ] ) : return False return _tracker [ 'pre_upgrade' ] [ name ]
check if a package is about to be upgraded (in plugin_unloaded()) .