From: Jon Turney <jon.turney@dronecode.org.uk>
To: cygwin-apps@cygwin.com
Cc: Jon Turney <jon.turney@dronecode.org.uk>
Subject: [PATCH cygport 2/2] Fixup __version_at_least a bit
Date: Tue, 02 Apr 2019 17:22:00 -0000 [thread overview]
Message-ID: <20190402172139.37384-3-jon.turney@dronecode.org.uk> (raw)
In-Reply-To: <20190402172139.37384-1-jon.turney@dronecode.org.uk>
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
next prev parent reply other threads:[~2019-04-02 17:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-02 17:21 [PATCH cygport 0/2] Use meson auto-features option Jon Turney
2019-04-02 17:22 ` [PATCH cygport 1/2] meson: use " Jon Turney
2019-04-02 17:22 ` Jon Turney [this message]
2020-03-24 3:07 ` [PATCH cygport 0/2] Use meson " Yaakov Selkowitz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190402172139.37384-3-jon.turney@dronecode.org.uk \
--to=jon.turney@dronecode.org.uk \
--cc=cygwin-apps@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).