Make duneproject aware that opm-models is merged with opm-simulators
authorDebian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>
Fri, 22 Nov 2024 14:28:16 +0000 (15:28 +0100)
committerMarkus Blatt <markus@dr-blatt.de>
Fri, 22 Nov 2024 14:28:16 +0000 (15:28 +0100)
Last-Update: 2024-11-18

This is needed to kepp autopkgtests  from testing working. Can safely be
removed laters
Last-Update: 2024-11-18
Gbp-Pq: Name duneproject-simulators-is-alias-for-models

bin/duneproject

index eb073981a35ddb6a5b89cfbf422c0f5ee4d4169f..d8419db90b4312edcfee3b5057a60a198ba359e2 100755 (executable)
@@ -224,6 +224,9 @@ while [ "$DATACORRECT" != "y" -a "$DATACORRECT" != "Y" ]; do
       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