summaryrefslogtreecommitdiff
path: root/src/rebar_packages.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/rebar_packages.erl')
-rw-r--r--src/rebar_packages.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rebar_packages.erl b/src/rebar_packages.erl
index 7974fda..7334365 100644
--- a/src/rebar_packages.erl
+++ b/src/rebar_packages.erl
@@ -14,12 +14,12 @@ get_packages(State) ->
try
{ok, Binary} = file:read_file(PackagesFile),
{Dict, Graph} = binary_to_term(Binary),
- {Dict, Graph}
+ {Dict, rebar_digraph:restore_graph(Graph)}
catch
_:_ ->
?ERROR("Bad packages index, try to fix with `rebar update`~n", []),
- {dict:new(), rlx_depsolver:new_graph()}
+ {dict:new(), digraph:new()}
end;
false ->
- {dict:new(), rlx_depsolver:new_graph()}
+ {dict:new(), digraph:new()}
end.