diff --git a/tools/stable_backport.py b/tools/stable_backport.py index 3f7e9fc0ea8900896e3f16e8eaf7ca5fe7a3a8b9..5a7ba803c5c500bcfc5ff20005f32224ab35e886 100755 --- a/tools/stable_backport.py +++ b/tools/stable_backport.py @@ -6,7 +6,7 @@ import sys import re from contextlib import contextmanager -from os import system, path, makedirs +from os import system, path, makedirs, getenv from subprocess import check_output, STDOUT, CalledProcessError from collections import defaultdict import shutil @@ -14,8 +14,8 @@ from termcolor import colored -STABLE_VERSION = '1.3' -DEVEL_BRANCH = 'master' +STABLE_VERSION = getenv('WEBOOB_BACKPORT_STABLE', '1.3') +DEVEL_BRANCH = getenv('WEBOOB_BACKPORT_DEVEL', 'master') @contextmanager