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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

_______________________________________________
Libosinfo mailing list
Libosinfo@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libosinfo




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux