Skip to content
Snippets Groups Projects
Commit 47255e4f authored by Christoph Grüninger's avatar Christoph Grüninger
Browse files

Merge branch 'feature/dunecontrol-less-version-checks' into 'master'

[dunecontrol] Check less often the version for module dependencies

Similar to update, status, svn, git, exec, and bexec don't check
whether the versions for dependencies are fulfilled.

This could fix #9 

See merge request !28
parents 834b14c0 72f8bfae
No related branches found
No related tags found
No related merge requests found
...@@ -332,6 +332,9 @@ esac' ...@@ -332,6 +332,9 @@ esac'
# list of all dunecontrol commands # list of all dunecontrol commands
COMMANDS="printdeps vcsetup update autogen configure make all exec bexec status svn git" COMMANDS="printdeps vcsetup update autogen configure make all exec bexec status svn git"
# list of dunecontrol commands for which the version check is skipped by default
COMMANDSTOSKIPVERSIONCHECK="update status svn git exec bexec"
# help string for the commands # help string for the commands
printdeps_HELP="print recursive dependencies of a module" printdeps_HELP="print recursive dependencies of a module"
vcsetup_HELP="setup version control repository (Git etc.) or working copy (SVN)" vcsetup_HELP="setup version control repository (Git etc.) or working copy (SVN)"
...@@ -1300,7 +1303,10 @@ EOF ...@@ -1300,7 +1303,10 @@ EOF
fi fi
fi fi
set -e set -e
if test "$1" = "update"; then export SKIPVERSIONCHECK=yes; fi # skip version check if command is in according list
if grep -q "$1" <<<"$COMMANDSTOSKIPVERSIONCHECK" ; then
export SKIPVERSIONCHECK=yes;
fi
check_commands "$@" check_commands "$@"
create_module_list create_module_list
NAMES="" NAMES=""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment