Re: [PATCH] install-script tool: Display names of generated files

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

 



On Thu, Feb 07, 2013 at 02:04:57AM +0200, Zeeshan Ali (Khattak) wrote:
> From: "Zeeshan Ali (Khattak)" <zeeshanak@xxxxxxxxx>
> 
> Also add a commandline option (-q/--quiet) to disable this behavior.
> ---
>  tools/osinfo-install-script.c | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/tools/osinfo-install-script.c b/tools/osinfo-install-script.c
> index ac71cc0..73f1d3d 100644
> --- a/tools/osinfo-install-script.c
> +++ b/tools/osinfo-install-script.c
> @@ -34,6 +34,7 @@ static const gchar *prefix;
>  
>  static gboolean list_config = FALSE;
>  static gboolean list_profile = FALSE;
> +static gboolean quiet = FALSE;
>  
>  static OsinfoInstallConfig *config;
>  
> @@ -78,6 +79,8 @@ static GOptionEntry entries[] =
>        N_("List configuration parameters"), NULL },
>      { "list-profiles", '\0', 0, G_OPTION_ARG_NONE, (void*)&list_profile,
>        N_("List install script profiles"), NULL },
> +    { "quiet", 'q', 0, G_OPTION_ARG_NONE, (void*)&quiet,
> +      N_("Do not display output filenames"), NULL },
>      { NULL }
>  };
>  
> @@ -229,6 +232,8 @@ static gboolean generate_script(OsinfoOs *os)
>                         error->message ? error->message : "unknown");
>              goto cleanup;
>          }
> +        if (!quiet)
> +           g_print ("%s\n", osinfo_install_script_get_output_filename(script));
>      }
>      ret = TRUE;

ACK


Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|

_______________________________________________
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