Skip to content

Commit

Permalink
Fix kernel upgrade checks.
Browse files Browse the repository at this point in the history
  • Loading branch information
liske committed Oct 28, 2014
1 parent c41f258 commit 3939738
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/report.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3939738

Please sign in to comment.