[Libosinfo] [libosinfo PATCH v2 2/7] tree: Don't set "has-treeinfo" property's default to TRUE

Fabiano Fidêncio fidencio at redhat.com
Wed Jun 26 11:27:05 UTC 2019


Doesn't make sense to set "has-treeinfo" property to TRUE by default
knowing that debian and ubuntu trees do not support treeinfo.

This was mistakenly added as part of commit eb53f8d6.

Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
---
 osinfo/osinfo_tree.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/osinfo/osinfo_tree.c b/osinfo/osinfo_tree.c
index 3a88da0..41e52d8 100644
--- a/osinfo/osinfo_tree.c
+++ b/osinfo/osinfo_tree.c
@@ -359,7 +359,7 @@ osinfo_tree_class_init(OsinfoTreeClass *klass)
     pspec = g_param_spec_boolean("has-treeinfo",
                                  "HasTreeinfo",
                                  _("Whether the tree has treeinfo"),
-                                 TRUE /* default value */,
+                                 FALSE /* default value */,
                                  G_PARAM_READWRITE |
                                  G_PARAM_STATIC_STRINGS);
     g_object_class_install_property(g_klass, PROP_HAS_TREEINFO, pspec);
-- 
2.21.0




More information about the Libosinfo mailing list