Monday, December 07, 2020

Re: add checks to modgo-gen-modules-helper

Paco Esteban writes:

> Hi ports@,
>
> I saw on another thread that somebody was seeing errors when using the
> modgo-gen-modules target.
>
> This patch tries to remove those errors.
>
> Gurus of Go and ports infra could take a look ?
>
> ok to commit ?

OK abieber@ !

>
> diff e5ef9980f1aa5da93e90dd98ad0e9cdf8502b6ed /usr/ports
> blob - 1621c8ffb26b8159cefe50fb89b1ec21549ba5f3
> file + infrastructure/bin/modgo-gen-modules-helper
> --- infrastructure/bin/modgo-gen-modules-helper
> +++ infrastructure/bin/modgo-gen-modules-helper
> @@ -40,5 +40,5 @@ $port->set_other( MODGO_MODULES => "\\\n" . join(" \\
> $port->set_other( MODGO_MODFILES => "\\\n" . join(" \\\n", @{$portinfo->{Mods}})) if $portinfo->{Mods};
>
> say "MODGO_VERSION =\t$portinfo->{Version}\n";
> -say "MODGO_MODULES =\t$port->{'MODGO_MODULES'}\n";
> -say "MODGO_MODFILES =\t$port->{'MODGO_MODFILES'}\n";
> +say "MODGO_MODULES =\t$port->{'MODGO_MODULES'}\n" if defined($port->{'MODGO_MODULES'});
> +say "MODGO_MODFILES =\t$port->{'MODGO_MODFILES'}\n" if defined($port->{'MODGO_MODFILES'});

No comments:

Post a Comment