check logpackages conditionally

Signed-off-by: Dinar Valeev <dvaleev@suse.com>