anchor.diff:  
   get_latest_version(Dep, Repo, HexRegistry, State) ->
       verify_table(State),
  -    case ets:select(HexRegistry, [{#package{key={'$1', '$2', '$3'}, _='_'},
  -                                    [{'==', '$1', Dep}, {'==', '$3', Repo}], ['$2']}]) of
  -        [] ->
  -            none;
  -        Vsns ->
  -            handle_vsns(Vsns)
  -    end.
  +    Vsns = ets:select(HexRegistry, [{#package{key={'$1', '$2', '$3'}, _='_'},
  +                                     [{'==', '$1', Dep}, {'==', '$3', Repo}], ['$2']}]),
  +    handle_vsns(Vsns).
  
positive.code:             {ok, Package, RepoConfig};
          _ ->
              Fun = fun(Repo) ->
                        case resolve_version_(Dep, DepVsn, Repo, HexRegistry, State) of
                            none ->
                                not_found;
                            {ok, Vsn} ->
  
negative.code:             {error, {invalid_vsn, DepVsn}};
          _ ->
              Fun = fun(Repo) ->
                        case get_package_versions(Dep, DepVsn, Repo, HexRegistry, State) of
                            none ->
                                not_found;
                            {ok, Vsn} ->
  