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

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

 



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@xxxxxxxxxx>
> ---
> 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@xxxxxxxxxx>


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 :|

_______________________________________________
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