Skip to content
Snippets Groups Projects
Commit 30bee835 authored by Christian Engwer's avatar Christian Engwer
Browse files

* add ability to skip the version check

* dunecontrol update defaults to skip-version-check

[[Imported from SVN: r5620]]
parent e01d183c
No related branches found
No related tags found
No related merge requests found
......@@ -508,6 +508,9 @@ while test $# -gt 0; do
export ONLY="$ONLY $MODULE"
done
;;
--skipversioncheck)
export SKIPVERSIONCHECK=yes
;;
--current)
while ! test -f $CONTROL; do
cd ..
......@@ -721,6 +724,7 @@ EOF
;;
*)
if is_command $command; then
if test $command == update; then export SKIPVERSIONCHECK=yes; fi
create_module_list
NAMES=""
BUILDMODULES=""
......
......@@ -318,7 +318,7 @@ _sort_module() {
fi
if test "x$(eval echo \$HAVE_$dep)" != "x"; then
eval ver=\$VERS_$dep
if ! check_version "$ver" "$depver"; then
if test "$SKIPVERSIONCHECK" != "yes" && ! check_version "$ver" "$depver"; then
echo "ERROR: version mismatch." >&2
echo " $modname requires $name $depver," >&2
echo " but only $name = $ver available." >&2
......
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