From 76d2def56349a9190b26591dd75b5a0f17697341 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 1 Jul 2017 14:06:39 +0200 Subject: consider client age in commpatibility check --- src/libtoolVersion.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/libtoolVersion.ts b/src/libtoolVersion.ts index 0525f5c08..8800fde03 100644 --- a/src/libtoolVersion.ts +++ b/src/libtoolVersion.ts @@ -49,7 +49,7 @@ export function compare(me: string, other: string): VersionMatchResult|undefined return undefined; } - const compatible = (meVer.current <= otherVer.current && + const compatible = (meVer.current - meVer.age <= otherVer.current && meVer.current >= (otherVer.current - otherVer.age)); const currentCmp = Math.sign(meVer.current - otherVer.current); -- cgit v1.2.3