check if repos is actually passed so we dont iterate over NoneType object in rpm.install()