Monday, December 07, 2020

add checks to modgo-gen-modules-helper

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 ?

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'});

--
Paco Esteban.
0x5818130B8A6DBC03

No comments:

Post a Comment