[PATCH] check for previous releases even in the requested repo, not just in parents