Date: Fri, 2 Oct 2020 06:52:09 +0000 (UTC) From: Baptiste Daroussin <bapt@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r550901 - head/Keywords Message-ID: <202010020652.0926q9HV061813@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: bapt Date: Fri Oct 2 06:52:08 2020 New Revision: 550901 URL: https://svnweb.freebsd.org/changeset/ports/550901 Log: Fix @sample with 2 arguments Reviewed by: manu Differential Revision: https://reviews.freebsd.org/D26639 Modified: head/Keywords/sample.ucl Modified: head/Keywords/sample.ucl ============================================================================== --- head/Keywords/sample.ucl Fri Oct 2 06:06:54 2020 (r550900) +++ head/Keywords/sample.ucl Fri Oct 2 06:52:08 2020 (r550901) @@ -23,7 +23,7 @@ arguments: true post-install-lua: <<EOS sample_file = pkg.prefixed_path("%1") if "%#" == 2 then - target_file = pkg.prefixed_path("%1") + target_file = pkg.prefixed_path("%2") else target_file = string.gsub(sample_file,'%.sample$', "") end @@ -35,7 +35,7 @@ EOS pre-deinstall-lua: <<EOS sample_file = pkg.prefixed_path("%1") if "%#" == 2 then - target_file = pkg.prefixed_path("%1") + target_file = pkg.prefixed_path("%2") else target_file = string.gsub(sample_file,'%.sample$', "") end
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202010020652.0926q9HV061813>