[Libosinfo] [PATCH osinfo-db-tools 3/7] export: Remove argc check in main()

Fabiano Fidêncio fidencio at redhat.com
Fri Sep 21 09:25:37 UTC 2018


On Fri, Sep 21, 2018 at 11:13 AM Fabiano Fidêncio <fidencio at redhat.com>
wrote:

> osinfo-db-export does not have to take one argument as, in case the
> archive file to export is not passed a generic one will be created.
>
> Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
>

Self-nack to this one. The others are still valid. :-)


> ---
>  tools/osinfo-db-export.c | 6 ------
>  1 file changed, 6 deletions(-)
>
> diff --git a/tools/osinfo-db-export.c b/tools/osinfo-db-export.c
> index 8b2d5fb..2c1bb8d 100644
> --- a/tools/osinfo-db-export.c
> +++ b/tools/osinfo-db-export.c
> @@ -522,12 +522,6 @@ gint main(gint argc, gchar **argv)
>          goto error;
>      }
>
> -    if (argc > 2) {
> -        g_printerr(_("%s: expected path to one archive file to export\n"),
> -                   argv0);
> -        goto error;
> -    }
> -
>      if (local)
>          locs++;
>      if (system)
> --
> 2.17.1
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libosinfo/attachments/20180921/766b7f9f/attachment.htm>


More information about the Libosinfo mailing list