From 3939738fdddf18a182104a9a83a9f6cee15f77f5 Mon Sep 17 00:00:00 2001 From: Thomas Liske Date: Tue, 28 Oct 2014 19:24:19 +0100 Subject: [PATCH] Fix kernel upgrade checks. --- src/report.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/report.c b/src/report.c index 91c5088b..aafb9e74 100644 --- a/src/report.c +++ b/src/report.c @@ -163,10 +163,8 @@ static void reportHost(gpointer data, gpointer lgroup) { /* Kernel info */ xmlTextWriterStartElement(writer, BAD_CAST("kernel")); - if(n->status & HOST_STATUS_KERNELNOTMATCH) + if(n->status & (HOST_STATUS_KERNELABIUPGR | HOST_STATUS_KERNELVERUPGR)) xmlTextWriterWriteAttribute(writer, BAD_CAST("reboot"), BAD_CAST("1")); - if(n->status & HOST_STATUS_KERNELSELFBUILD) - xmlTextWriterWriteAttribute(writer, BAD_CAST("custom"), BAD_CAST("1")); if(n->kernelrel) xmlTextWriterWriteString(writer, BAD_CAST(n->kernelrel)); xmlTextWriterEndElement(writer);