[Libosinfo] [PATCH] install-script: Default to DISK injection method

Zeeshan Ali (Khattak) zeeshanak at gnome.org
Fri Aug 1 10:27:30 UTC 2014


If script does not declare an injection method, assume DISK as every
script must at least support one injection method and there is no need
to require scripts to always explicitly declare supported injection
methods.
---
 osinfo/osinfo_install_script.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/osinfo/osinfo_install_script.c b/osinfo/osinfo_install_script.c
index cc3eed2..66a49e4 100644
--- a/osinfo/osinfo_install_script.c
+++ b/osinfo/osinfo_install_script.c
@@ -1323,7 +1323,7 @@ unsigned int osinfo_install_script_get_injection_methods(OsinfoInstallScript *sc
     return osinfo_entity_get_param_value_int64_with_default
         (OSINFO_ENTITY(script),
          OSINFO_INSTALL_SCRIPT_PROP_INJECTION_METHOD,
-         0);
+         OSINFO_INSTALL_SCRIPT_INJECTION_METHOD_DISK);
 }
 
 /**
-- 
1.9.3




More information about the Libosinfo mailing list