svn commit: r550901 - head/Keywords
Baptiste Daroussin
bapt at FreeBSD.org
Fri Oct 2 06:52:09 UTC 2020
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
More information about the svn-ports-head
mailing list