From 7ca0edc90c303d1b8cc0acc40e301dc1f5404328 Mon Sep 17 00:00:00 2001 From: Dan Callaghan Date: Apr 30 2018 05:17:55 +0000 Subject: fix caret dependency ranges (RHBZ#1573064) --- diff --git a/nodejs.req b/nodejs.req index 488908b..f09dd87 100755 --- a/nodejs.req +++ b/nodejs.req @@ -163,7 +163,7 @@ def convert_dep(req, operator, version): deps.append('{0} < {1}'.format(req, parts[0]+1)) # 1.2.3 or 1.2.3-4 or 1.2.x or ~1.2.3 or ^1.2.3 or 1.2 - elif len(parts) == 3 or operator != '~': + elif len(parts) == 3 or not operator: # 1.2.x or 1.2 if len(parts) == 2 or parts[2] == 'x': deps.append('{0} >= {1}.{2}'.format(req, parts[0], parts[1]))