Signed-off-by: Fabiano Fidêncio
---
tools/osinfo-db-validate.c | 9 +
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/tools/osinfo-db-validate.c b/tools/osinfo-db-validate.c
index 7fd87d2..3a1717f 100644
--- a/tools/osinfo-db-validate.c
+++ b/tools/osinfo-db-validate.c
@@ -1
Let's use g_clear_object() & g_clear_error() as those two functions
avoid us checking whether the object is NULL or not and also sets the
object to NULL after unrefing it.
Signed-off-by: Fabiano Fidêncio
---
tools/osinfo-db-export.c | 21 +++--
1 file changed, 7 insertions(+), 14
Let's use g_clear_object() & g_clear_error() as those two functions
avoid us checking whether the object is NULL or not and also sets the
object to NULL after unrefing it.
Signed-off-by: Fabiano Fidêncio
---
tools/osinfo-db-validate.c | 11 ---
1 file changed, 4 insertions(+), 7 deletion
Let's use g_clear_object() & g_clear_error() as those two functions
avoid us checking whether the object is NULL or not and also sets the
object to NULL after unrefing it.
Signed-off-by: Fabiano Fidêncio
---
tools/osinfo-db-import.c | 26 +-
1 file changed, 9 insertions(+
Let's rely on libsoup in order to to http://, https://, and ftp://
requests.
By doing this, GVFS (more specifically, gvfs-http) won't be dragged as
a dependency, which caused errors for running osinfo-db-import as root
(as GVFS relies on being run in the user's session).
https://gitlab.com/libosi
Let's use g_clear_object() & g_clear_error() as those two functions
avoid us checking whether the object is NULL or not and also sets the
object to NULL after unrefing it.
Signed-off-by: Fabiano Fidêncio
---
tools/osinfo-db-util.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --g
Let's use g_clear_object() & g_clear_error() as those two functions
avoid us checking whether the object is NULL or not and also sets the
object to NULL after unrefing it.
Signed-off-by: Fabiano Fidêncio
---
tools/osinfo-db-path.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --
As osinfo-db-import handles non-local requests, it'd end up relying on
GVFS under the hood, which would cause the app to not work when running
as root.
In order to avoid this situation, let's rely on libsoup for this case.
It's important to mention that glib minimum version has been bumped to
2.4
As we rely on libsoup to handle http://, https://, and ftp:// requests
there's no need to depend on gvfs anymore.
https://gitlab.com/libosinfo/libosinfo/issues/30
Signed-off-by: Fabiano Fidêncio
---
osinfo-db-tools.spec.in | 1 -
1 file changed, 1 deletion(-)
diff --git a/osinfo-db-tools.spec.
Signed-off-by: Fabiano Fidêncio
---
tools/osinfo-db-export.c | 17 -
1 file changed, 8 insertions(+), 9 deletions(-)
diff --git a/tools/osinfo-db-export.c b/tools/osinfo-db-export.c
index eef6688..5bf61fe 100644
--- a/tools/osinfo-db-export.c
+++ b/tools/osinfo-db-export.c
@@ -10
10 matches
Mail list logo