Due to some of my tweaking on devel this didn't apply cleanly,
though
I've applied it manually. I'll retest some imports in a bit just to
make sure everything else is still happy.
That part on devel was modified to detect the "debian -> ." link that also
caused an infinite recursion, and that is probably why it didn't apply clean.
The new code is more generic than the old one (only checked if target
was "."), so it should suffice.
JaviP