From f43cb0f57cde7725875b71a79416720e4b0da4a9 Mon Sep 17 00:00:00 2001 From: Benoit Pasquier Date: Fri, 15 Feb 2019 17:37:05 +1100 Subject: [PATCH] Update registration.jl Trying to fix issue #86 (not sure what I am doing at this point) --- src/registration.jl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/registration.jl b/src/registration.jl index b081043..5140003 100644 --- a/src/registration.jl +++ b/src/registration.jl @@ -5,6 +5,9 @@ const registry = Dict{String, AbstractDataDep}() function register(datadep::AbstractDataDep) name = datadep.name if haskey(registry, name) + if isequal(datadep, registry[name]) + return registry + end @warn("Over-writing registration of the datadep", name) end if !is_valid_name(name)