diff options
author | Thomas Haller <thaller@redhat.com> | 2020-12-03 15:27:12 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2020-12-03 17:34:01 +0100 |
commit | 3bf367594ae50734816d7f4ddc3e1a281352e4fb (patch) | |
tree | afe2c66e82547cfa2c51d5495ffae00946e7662e | |
parent | a8ead4a4c30bf1a9f28a7d52ad42c84dbe903f10 (diff) | |
download | NetworkManager-3bf367594ae50734816d7f4ddc3e1a281352e4fb.tar.gz |
contrib/rpm: add "--no-auto-with-test" option for "build_clean.sh" script
By default, "build_clean.sh" script likes to automatically add "-w test"
-- unless the user specified "-w test" or "-W test" on the command line.
That is mostly fine. However, the spec file has an internal default for the
"test" option. So if you want to use the default that gets determined
by the spec file, then we should suppress that automatism.
-rwxr-xr-x | contrib/fedora/rpm/build_clean.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/contrib/fedora/rpm/build_clean.sh b/contrib/fedora/rpm/build_clean.sh index e7afdb4f24..1d889241f4 100755 --- a/contrib/fedora/rpm/build_clean.sh +++ b/contrib/fedora/rpm/build_clean.sh @@ -107,6 +107,14 @@ while [[ $# -gt 0 ]]; do fi shift ;; + --no-auto-with-test) + # by default, the script adds "-w test" (unless the command line contains + # "-w test" or "-W test"). This flags allows to suppress that automatism. + # It's really only useful to test the spec file's internal default for the + # "test" option. Otherwise, you can always just explicitly select "-w test" + # or "-W test". + ADD_WITH_TEST=0 + ;; *) usage die "Unexpected argument \"$A\"" |