N0REP0
### <pkg:pat-sub.0.1:bar>
blabla
pioupiou
bloblob
### <pkg:pat-sub.0.1:bar-update.patch>
--- a/bar	2020-12-02 14:22:55.364620832 +0100
+++ b/bar	2020-12-02 14:23:05.668686881 +0100
@@ -1,3 +1,3 @@
 blabla
-pioupiou
+ploplop
 bloblob
### <pkg:pat-sub.0.1:baz>
blabla
pat-sub
bloblob
### <pkg:pat-sub.0.1:baz-update.patch.in>
--- a/baz	2020-12-02 14:22:55.364620832 +0100
+++ b/baz	2020-12-02 14:23:05.668686881 +0100
@@ -1,3 +1,3 @@
 blabla
-%{name}%
+ploplop
 bloblob
### <pkg:pat-sub.0.1:foo.in>
bla
%{name}%
blo
%{version}%
### <pkg:pat-sub.0.1>
opam-version: "2.0"
patches:
[
 "bar-update.patch"
 "baz-update.patch"
]
substs:
[
 "foo"
 "baz-update.patch"
]
build: [
  ["grep" "pat-sub" "foo"]
  ["grep" "0.1" "foo"]
  ["grep" "ploplop" "bar"]
  ["grep" "ploplop" "baz"]
]
### opam switch create sw --empty
### OPAMDEBUGSECTIONS="ACTION" opam install pat-sub -y --debug --debug-level=-1
The following actions will be performed:
=== install 1 package
  - install pat-sub 0.1

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
ACTION                          download_package: pat-sub.0.1
ACTION                          prepare_package_source: pat-sub.0.1 at ${BASEDIR}/OPAM/sw/.opam-switch/build/pat-sub.0.1
ACTION                          pat-sub: expanding opam variables in baz-update.patch.in, generating baz-update.patch.

ACTION                          pat-sub: applying bar-update.patch.

ACTION                          pat-sub: applying baz-update.patch.

ACTION                          pat-sub: expanding opam variables in foo.in, generating foo.

ACTION                          Installing pat-sub.0.1.

ACTION                          changes recorded for pat-sub.0.1: 0 items
-> installed pat-sub.0.1
Done.
