parameters: (self, package)
docstring: returns True if newer package is available in the repositories
docstring_summary: returns True if newer package is available in the repositories
docstring_tokens: returns True if newer package is available in the repositories
function: def check_upgrade_available(self, package):
          '''returns True if newer package is available in the repositories'''
          installed, candidate = self._check_versions(package)
          if installed and candidate:
              if installed != candidate:
                  log("Version installed  %s" %installed)
                  log("Version available  %s" %candidate)
                  return True
              else:
                  log("Already on newest version")
          elif not installed:
                  log("No installed package found")
                  return False
          else:
              return False
function_tokens: def check_upgrade_available ( self , package ) : installed , candidate = self . _check_versions ( package ) if installed and candidate : if installed != candidate : log ( "Version installed  %s" % installed ) log ( "Version available  %s" % candidate ) return True else : log ( "Already on newest version" ) elif not installed : log ( "No installed package found" ) return False else : return False