Disable debug when the repo_type is neither distribution nor puddle

In both cases, repositories are not defined.

Change-Id: I0464f23fa540b5f0247a6a020203a392d5c4ef2a