projects
/
services
/
createrepo_c.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe7fe70
)
updateinfo: Fix logic of inserting <reboot_suggested> element
author
Tomas Mlcoch
<tmlcoch@redhat.com>
Tue, 5 Aug 2014 08:11:24 +0000
(10:11 +0200)
committer
Tomas Mlcoch
<tmlcoch@redhat.com>
Tue, 5 Aug 2014 08:11:24 +0000
(10:11 +0200)
src/xml_dump_updateinfo.c
patch
|
blob
|
history
diff --git
a/src/xml_dump_updateinfo.c
b/src/xml_dump_updateinfo.c
index
1bfb923
..
6900dc2
100644
(file)
--- a/
src/xml_dump_updateinfo.c
+++ b/
src/xml_dump_updateinfo.c
@@
-59,7
+59,8
@@
cr_xml_dump_updatecollectionpackages(xmlNodePtr collection, GSList *packages)
BAD_CAST cr_checksum_name_str(pkg->sum_type));
}
- xmlNewChild(package, NULL, BAD_CAST "reboot_suggested", NULL);
+ if (pkg->reboot_suggested)
+ xmlNewChild(package, NULL, BAD_CAST "reboot_suggested", NULL);
}
}