diff options
author | Emilio Pozuelo Monfort <pochu@debian.org> | 2019-12-03 13:39:42 +0100 |
---|---|---|
committer | Emilio Pozuelo Monfort <pochu@debian.org> | 2020-02-26 12:31:30 +0100 |
commit | c8c344738e5067611d58c842e6d496f4c947f2ac (patch) | |
tree | 5fadac96817631d052d178ced93018f00541d1f9 /bin | |
parent | 6ebadf9eadee2816703a443fc5b5569eaf75c860 (diff) |
lts-cve-triage: take lts releases from config.py
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/lts-cve-triage.py | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/bin/lts-cve-triage.py b/bin/lts-cve-triage.py index 9cb6306983..39b8b7f0a3 100755 --- a/bin/lts-cve-triage.py +++ b/bin/lts-cve-triage.py @@ -15,13 +15,26 @@ # You should have received a copy of the GNU General Public License # along with this file. If not, see <https://www.gnu.org/licenses/>. +import os import sys import argparse import collections -from tracker_data import TrackerData, RELEASES +from tracker_data import TrackerData from unsupported_packages import UnsupportedPackages, LimitedSupportPackages +def setup_path(): + dirname = os.path.dirname + base = dirname(dirname(os.path.realpath(sys.argv[0]))) + sys.path.insert(0, os.path.join(base, "lib", "python")) + +setup_path() +import config + +RELEASES = { + 'lts': config.get_supported_releases()[0], + 'next_lts': config.get_supported_releases()[1], +} def colored(x, *args, **kwargs): return x |