[virt-tools-list] [libosinfo 3/5] Fix OsinfoMedia::installer-reboots default value
Christophe Fergeau
cfergeau at redhat.com
Tue Nov 27 17:50:25 UTC 2012
By default, we want to report 1 reboot during installation, not -1.
Since this property is _CONSTRUCT, the -1 value will be stored in
the entity store, and osinfo_entity_get_value_*_with_default will
never return their default value, so it's important to get it right
in this place.
---
osinfo/osinfo_media.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/osinfo/osinfo_media.c b/osinfo/osinfo_media.c
index 5a54893..2c03916 100644
--- a/osinfo/osinfo_media.c
+++ b/osinfo/osinfo_media.c
@@ -498,7 +498,7 @@ osinfo_media_class_init (OsinfoMediaClass *klass)
_("Number of installer reboots"),
G_MININT,
G_MAXINT,
- -1 /* default value */,
+ 1 /* default value */,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT | /* to set default value */
G_PARAM_STATIC_STRINGS);
--
1.8.0
More information about the virt-tools-list
mailing list