From e03f28f6542426710ec3b61514918f7c61481c82 Mon Sep 17 00:00:00 2001 From: C-3PO Date: Wed, 4 Jul 2018 15:48:34 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=90=20Fix=20release=20path=20to=20veri?= =?UTF-8?q?fy=20from=20>=3D=200?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ssn/findReleasePath.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ssn/findReleasePath.ts b/src/ssn/findReleasePath.ts index d0d5f93..6850f86 100644 --- a/src/ssn/findReleasePath.ts +++ b/src/ssn/findReleasePath.ts @@ -3,6 +3,10 @@ import verifyProductName from '../ssn/verify/verifyProductName'; /** For the given release in the given product, returns from which releases we can patch to this release. */ function getFroms({ product, to: releaseTo}: {product: Product, to: number}) { + if (releaseTo < 0) { + return []; + } + //The launcher (patcher, patcher2014, patcher2017) is always installing from -1, never from a previous version if (product.startsWith('patcher')) { return [-1];