Handle virtual dependencies for kernel package.
Handle virtual dependencies for kernel package.

Handle the case where the kernel package depends on a virtual package
provided by one or more real packages; use the first one.

Also, fix a mistake where the always-set $kpkg variable was checked
inside the loop: The correct variable to check is $kernel_package.

sveniu/rib-examples