Permalink
Browse files

Filter out the file we call from correctly.

  • Loading branch information...
1 parent 074637d commit 17ccc8634e63c3496e03421a84d5871dd50e624c Robin Osterberg committed Sep 19, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/distel.erl
View
@@ -553,7 +553,9 @@ erl_from_mod(Mod) ->
includes_from_mod(Mod) ->
try {ok,{_,Abst}} = get_abst_from_debuginfo(Mod),
[File || {_,_,file,{File,_}} <- Abst,
- File =/= erl_from_mod(Mod) andalso File =/= []]
+ File =/= [] andalso
+ filename:basename(File) =/=
+ filename:basename(erl_from_mod(Mod))]
catch _:_ -> ""
end.

0 comments on commit 17ccc86

Please sign in to comment.