resolved situation if not any packages installed explicitly

(cherry picked from commit b94d936358458726236902e708b2006eb209647b)