This commit is contained in:
swrup 2025-11-11 02:07:51 +01:00
parent aa2ff7b2f0
commit 2f3113f55d
11742 changed files with 1223940 additions and 0 deletions

View file

@ -0,0 +1,22 @@
Test the %{pkg:installed}% form inside file substitution:
$ . ./helpers.sh
$ make_lockdir
$ mkdir source
$ cat >source/foo.in <<EOF
> foo: %{somepkg:installed}%
> EOF
$ cat >dune.lock/test.pkg <<EOF
> (version 0.0.1)
> (source (copy $PWD/source))
> (build
> (progn
> (system "echo somepkg installation %{pkg:somepkg:installed}")
> (substitute foo.in foo)
> (system "cat foo")))
> EOF
$ build_pkg test
somepkg installation false
foo: false