[prev in list] [next in list] [prev in thread] [next in thread]
List: fstests
Subject: [PATCH 3/7] get-all: fail if optional repositories have been deconfigured
From: Eric Biggers <ebiggers3 () gmail ! com>
Date: 2017-05-25 19:25:45
Message-ID: 20170525192549.138518-4-ebiggers3 () gmail ! com
[Download RAW message or body]
From: Eric Biggers <ebiggers@google.com>
If an optional repository is enabled and then later disabled, require
that the corresponding directory manually be removed; otherwise, it
would still be included in the build.
Signed-off-by: Eric Biggers <ebiggers@google.com>
---
get-all | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/get-all b/get-all
index a0f0d05..fa27229 100755
--- a/get-all
+++ b/get-all
@@ -81,6 +81,15 @@ setup_repo()
fi
fi
+ if [ -z "$repo_url" ] && ! $required; then
+ cat 1>&2 <<EOF
+ERROR: $repo_url_variable has been removed from the config file,
+but the $repo_name directory still exists. Remove it if you don't
+want it to be built.
+EOF
+ exit 1
+ fi
+
# If a specific commit was specified, check it out.
if [ -n "$commit" ]; then
( cd "$repo_name";
--
2.13.0.219.gdb65acc882-goog
--
To unsubscribe from this list: send the line "unsubscribe fstests" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic