File: duneproject-simulators-is-alias-for-models

package info (click to toggle)
dune-common 2.10.0-4
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 5,804 kB
  • sloc: cpp: 52,256; python: 3,979; sh: 1,658; makefile: 17
file content (19 lines) | stat: -rw-r--r-- 711 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: Make duneproject aware that opm-models is merged with opm-simulators
 This is needed to kepp autopkgtests  from testing working. Can safely be
 removed laters
Author: markus@dr-blatt.de
Last-Update: 2024-11-18
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/bin/duneproject
+++ b/bin/duneproject
@@ -224,6 +224,9 @@ while [ "$DATACORRECT" != "y" -a "$DATAC
       read -p "   Enter space-separated list: " DEPENDENCIES
     done
     set +e
+    if ! $(echo "$MODULES" | grep opm-models &> /dev/null); then
+      DEPENDENCIES="$(echo "$DEPENDENCIES" | sed "s/opm-models/opm-simulators/g")"
+    fi
     modulesexist "$DEPENDENCIES" "$MODULES"
     DEPOK=$?
     set -e