[PATCH cygport 2/2] Fixup __version_at_least a bit

Jon Turney jon.turney@dronecode.org.uk
Tue Apr 2 17:22:00 GMT 2019


Use the variables we've made containing the separated version
components, rather than an undefined one
---
 lib/check_funcs.cygpart | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/check_funcs.cygpart b/lib/check_funcs.cygpart
index 07516be..bb35812 100644
--- a/lib/check_funcs.cygpart
+++ b/lib/check_funcs.cygpart
@@ -699,12 +699,12 @@ __version_at_least() {
 	local -a have_va=(${have_v//[-\._]/ });
 	local -i n=0;
 
-	while defined want_ver[${n}]
+	while defined want_va[${n}]
 	do
-		if (( want_ver[n] < ${have_ver[${n}]:-0} ))
+		if (( want_va[n] < ${have_va[${n}]:-0} ))
 		then
 			return 0;
-		elif (( want_ver[n] > ${have_ver[${n}]:-0} ))
+		elif (( want_va[n] > ${have_va[${n}]:-0} ))
 		then
 			return 1;
 		else
-- 
2.17.0



More information about the Cygwin-apps mailing list