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

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

 





On Fri, Sep 21, 2018 at 11:13 AM Fabiano Fidêncio <fidencio@xxxxxxxxxx> 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@xxxxxxxxxx>

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

_______________________________________________
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