Re: [PATCH] topology: delete output file if parsing fails.

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

 



On Fri, 09 Jun 2017 17:33:42 +0200,
Liam Girdwood wrote:
> 
> Currently the binary output file is left when parsing fails. This confuses
> GNU Make if the parsing fails and causes the compilation to partially
> complete.
> 
> Signed-off-by: Liam Girdwood <liam.r.girdwood@xxxxxxxxxxxxxxx>

Applied, thanks.

But at the next time, please specify which repo to apply.
It took some time until I figured out it's for alsa-utils.


Takashi

> ---
>  topology/topology.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/topology/topology.c b/topology/topology.c
> index 6d876ee..097c255 100644
> --- a/topology/topology.c
> +++ b/topology/topology.c
> @@ -108,6 +108,7 @@ int main(int argc, char *argv[])
>  	if (err < 0) {
>  		fprintf(stderr, _("failed to compile context %s\n"), source_file);
>  		snd_tplg_free(snd_tplg);
> +		unlink(output_file);
>  		return 1;
>  	}
>  
> -- 
> 2.11.0
> 
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@xxxxxxxxxxxxxxxx
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
> 
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux