[Libosinfo] [osinfo-db-tools PATCH v5 3/3] import: Introduce "--latest" option

Daniel P. Berrangé berrange at redhat.com
Wed Dec 19 10:57:12 UTC 2018


On Mon, Dec 17, 2018 at 11:09:03AM +0100, Fabiano Fidêncio wrote:
> --latest option checks whether there's a new osinfo-db available from
> the official libosinfo's release website, downloads and install it.
> 
> The download and installation is only then when the version available in
> libosinfo's release website is newer than the version installed in the
> (specified location in) system.
> 
> The file we query in order to get the "latest" available version
> (https://db.libosinfo.org/latest.json) is a json that looks like:
> {
>     "version": 1,
>     "release": {
>         "version": "20181203",
>         "archive": "https://releases.pagure.org/libosinfo/osinfo-db-20181203.tar.xz",
>         "signature": "https://releases.pagure.org/libosinfo/osinfo-db-20181203.tar.xz.asc"
>     }
> }
> 
> The file will be automatically updated whenever a new release is done
> (in a day interval).
> 
> This commit also introduces a new dependency: json-glib, which is used
> to easily manipulate the queried file's content.
> 
> Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
> ---
> About json-glib, no specific version is required! :-)
> ---
>  configure.ac             |   1 +
>  osinfo-db-tools.spec.in  |   1 +
>  tools/Makefile.am        |   3 +
>  tools/osinfo-db-import.c | 153 ++++++++++++++++++++++++++++++++++++++-
>  4 files changed, 157 insertions(+), 1 deletion(-)

Reviewed-by: Daniel P. Berrangé <berrange at redhat.com>


Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|




More information about the Libosinfo mailing list