N0REP0
### OPAMYES=1
### <pin:ongoing/ongoing.opam>
opam-version: "2.0"
build: [[ "test" "-f" "ongoing.txt" ] [ "cat" "ongoing.txt" ]]
install: [ "touch" "installed"]
### <ongoing/ongoing.txt>
versionned
### git -C ./ongoing init -q --initial-branch=master
### git -C ./ongoing config core.autocrlf false
### git -C ./ongoing add -A
### git -C ./ongoing commit -qm "inplace test"
### <ongoing/newfile.txt>
new!
### opam switch create inplace --empty
### opam pin ./ongoing -n
Package ongoing does not exist, create as a NEW package? [y/n] y
ongoing is now pinned to git+file://${BASEDIR}/ongoing#master (version dev)
### opam install ongoing -v | sed-cmd test | sed-cmd cat | sed-cmd touch

<><> Synchronising pinned packages ><><><><><><><><><><><><><><><><><><><><><><>
Processing  1/1:
[NOTE] Ignoring uncommitted changes in ${BASEDIR}/ongoing (`--working-dir' not specified or specified with no argument).
Processing  1/1: [ongoing.dev: git]
[ongoing.dev] synchronised (no changes)

The following actions will be performed:
=== install 1 package
  - install ongoing dev (pinned)

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Processing  1/3: [ongoing.dev: git]
-> retrieved ongoing.dev  (no changes)
Processing  2/3: [ongoing: test ongoing.txt]
+ test "-f" "ongoing.txt" (CWD=${BASEDIR}/OPAM/inplace/.opam-switch/build/ongoing.dev)
Processing  2/3: [ongoing: cat ongoing.txt]
+ cat "ongoing.txt" (CWD=${BASEDIR}/OPAM/inplace/.opam-switch/build/ongoing.dev)
- versionned
-> compiled  ongoing.dev
Processing  3/3: [ongoing: touch installed]
+ touch "installed" (CWD=${BASEDIR}/OPAM/inplace/.opam-switch/build/ongoing.dev)
-> installed ongoing.dev
Done.
### test -f ./ongoing/installed
# Return code 1 #
### opam remove ongoing
The following actions will be performed:
=== remove 1 package
  - remove ongoing dev (pinned)

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> removed   ongoing.dev
Done.
### opam install ongoing --inplace -v | sed-cmd test | sed-cmd cat | sed-cmd touch

<><> Synchronising pinned packages ><><><><><><><><><><><><><><><><><><><><><><>
Processing  1/1: [ongoing.dev: git]
[ongoing.dev] synchronised (git+file://${BASEDIR}/ongoing#master)

The following actions will be performed:
=== install 1 package
  - install ongoing dev (pinned)

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Processing  1/3: [ongoing.dev: git]
-> retrieved ongoing.dev  (no changes)
Processing  2/3: [ongoing: test ongoing.txt]
+ test "-f" "ongoing.txt" (CWD=${BASEDIR}/ongoing)
Processing  2/3: [ongoing: cat ongoing.txt]
+ cat "ongoing.txt" (CWD=${BASEDIR}/ongoing)
- versionned
-> compiled  ongoing.dev
Processing  3/3: [ongoing: touch installed]
+ touch "installed" (CWD=${BASEDIR}/ongoing)
-> installed ongoing.dev
Done.
### test -f ./ongoing/installed
### rm ./ongoing/installed
### : inplace & working dir
### <pin:ongoing/ongoing.opam>
opam-version: "2.0"
build: [[ "test" "-f" "newfile.txt" ] [ "cat" "newfile.txt" ]]
install: [ "touch" "installed"]
### opam remove ongoing
The following actions will be performed:
=== remove 1 package
  - remove ongoing dev (pinned)

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> removed   ongoing.dev
Done.
### opam install ongoing --inplace --working-dir -v | sed-cmd test | sed-cmd cat | sed-cmd touch

<><> Synchronising pinned packages ><><><><><><><><><><><><><><><><><><><><><><>
Processing  1/1: [ongoing.dev: git]
[ongoing.dev] synchronised (git+file://${BASEDIR}/ongoing#master)
[ongoing] Installing new package description from upstream git+file://${BASEDIR}/ongoing#master

The following actions will be performed:
=== install 1 package
  - install ongoing dev (pinned)

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Processing  1/2: [ongoing: test newfile.txt]
+ test "-f" "newfile.txt" (CWD=${BASEDIR}/ongoing)
Processing  1/2: [ongoing: cat newfile.txt]
+ cat "newfile.txt" (CWD=${BASEDIR}/ongoing)
- new!
-> compiled  ongoing.dev
Processing  2/2: [ongoing: touch installed]
+ touch "installed" (CWD=${BASEDIR}/ongoing)
-> installed ongoing.dev
Done.
### test -f ./ongoing/installed
### : inplace & repo package
### <pkg:qux.u>
opam-version:"2.0"
### opam remove ongoing
The following actions will be performed:
=== remove 1 package
  - remove ongoing dev (pinned)

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> removed   ongoing.dev
Done.
### opam install ongoing qux --inplace | unordered

<><> Synchronising pinned packages ><><><><><><><><><><><><><><><><><><><><><><>
[ongoing.dev] synchronised (git+file://${BASEDIR}/ongoing#master)

The following actions will be performed:
=== install 2 packages
  - install ongoing dev (pinned)
  - install qux     u

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved ongoing.dev  (git+file://${BASEDIR}/ongoing#master)
-> installed qux.u
-> installed ongoing.dev
Done.
