#!/usr/bin/python -bb # Copyright 2008-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 from __future__ import print_function import sys import codecs from os import path as osp pym_path = osp.join(osp.dirname(osp.dirname(osp.realpath(__file__))), "pym") sys.path.insert(0, pym_path) import portage portage._internal_caller = True from portage import os from portage.output import green, red, nocolor, white from portage.util._argparse import ArgumentParser __program__ = "glsa-check" __author__ = "Marius Mauch " __version__ = "1.0" # option parsing epilog = "glsa-list can contain an arbitrary number of GLSA ids," \ " filenames containing GLSAs or the special identifiers" \ " 'all', 'new' and 'affected'" parser = ArgumentParser(usage=__program__ + "