[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

anna kernel version code



I don't understand how anna's code that checks kernel versions can work.

Here is the Kernel-Version field from nic-modules-2.4.27-1-386-di:

Kernel-Version: 2.4.27-1-386

Anna gets the kernel release, which should be 2.4.27:

    if (uname(&uts) == 0)
        running_kernel = strdup(uts.release);

Then it compares this to the Kernel-Version field:

        if (((di_system_package *)package)->kernel_version) {
            if (running_kernel && strcmp(running_kernel, ((di_system_package *)package)->kernel_version) == 0) {
                kernel_packages_present = true;
                break;
            }
        }

I don't understand how this can possibly match, but it obviously does or
we'd all be seeing warning messages from anna. Help?

-- 
see shy jo

Attachment: signature.asc
Description: Digital signature


Reply to: