[Libosinfo] [osinfo-db-tools PATCH 0/1] RFC: Make osinfo-db-import aware of URLs

Fabiano Fidêncio fidencio at redhat.com
Tue Sep 25 12:45:19 UTC 2018


This is a simple draft of a work that has been discussed back in July as
part of this thread[0].

There are a few things which are not clear to me whether we want (or
whether we do *not* want).

This work adds a dependency on libcurl (which is not that bad) in order
to download the archive file that would, then, be extracted into the
user's desired location.

For now I'm not using any progress callback to print the download status
and I don't even know whether it would be desired to have. But this is
something that could be easily done.

In order to give it a try, please, just build our source with the patch
included and try:
./tools/osinfo-db-import https://releases.pagure.org/libosinfo/osinfo-db-20180920.tar.xz
./tools/osinfo-db-import https://foo.bar/foo.bar.tar.xz

[0]: https://www.redhat.com/archives/libosinfo/2018-July/msg00002.html

Fabiano Fidêncio (1):
  import: Learn how to deal with URLs

 configure.ac             |   1 +
 osinfo-db-tools.spec.in  |   1 +
 tools/Makefile.am        |   4 +-
 tools/osinfo-db-import.c | 120 +++++++++++++++++++++++++++++++++++++--
 4 files changed, 121 insertions(+), 5 deletions(-)

-- 
2.17.1




More information about the Libosinfo mailing list