summaryrefslogtreecommitdiffstats
path: root/FUNCTIONS
diff options
context:
space:
mode:
authorThomas Orgis2016-03-20 22:09:40 +0100
committerThomas Orgis2016-03-20 22:09:40 +0100
commita37ac63ef1f833a8229339d160f22de711b48758 (patch)
tree7b64b9be08bb1a5944590e2a8a097b4c1f89c194 /FUNCTIONS
parenta2b34dcd694e47774173e97061bb2e34d87a2f67 (diff)
FUNCTIONS: Change name of dependency checker functions again. I'm told it
is dependent and dependee, not depender. Along goes the change for the only two spells that use it (sorry, Vlad, but I don't expect you to cherry-pick those separately).
Diffstat (limited to 'FUNCTIONS')
-rwxr-xr-xFUNCTIONS12
1 files changed, 6 insertions, 6 deletions
diff --git a/FUNCTIONS b/FUNCTIONS
index 22db9b0b55..674fd13c30 100755
--- a/FUNCTIONS
+++ b/FUNCTIONS
@@ -841,7 +841,7 @@ function get_spell_provider_file(){
## an incompatible update is scheduled.
## @params $1 - spell at hand
#---
-function check_dependers()
+function check_dependents()
{
local spell=$1; shift
message "${MESSAGE_COLOR}This is a possibly incompatible update of $spell." &&
@@ -862,10 +862,10 @@ function check_dependers()
## @params $3 - command to filter versions with
## @params $4 - and following: arguments to the filter command
##
-## Example: check_dependers_on_update $SPELL $VERSION cut -d . -f 1,2
+## Example: check_dependents_on_update $SPELL $VERSION cut -d . -f 1,2
## This will compare only x.y out of version x.y.z-betaY.
#---
-function check_dependers_on_update()
+function check_dependents_on_update()
{
local spell=$1; shift;
local version=$1; shift;
@@ -877,7 +877,7 @@ function check_dependers_on_update()
new_version=$(echo "$new_version" | "$@")
fi &&
if [[ "$new_version" != "$old_version" ]]; then
- check_dependers "$spell"
+ check_dependents "$spell"
fi
fi
}
@@ -891,7 +891,7 @@ function check_dependers_on_update()
## @params $2 - new version to be installed
## @params $3 - version of last ABI breakage
#---
-function check_dependers_versionjump()
+function check_dependents_versionjump()
{
local spell=$1; shift;
local version=$1; shift;
@@ -902,7 +902,7 @@ function check_dependers_versionjump()
# Now, if the versions differ, check if the breaking version is crossed.
for breaker in "$@"; do
if is_version_between "$old_version" "$breaker" "$version"; then
- check_dependers "$spell"
+ check_dependents "$spell"
return
fi
done