#!/usr/bin/python # Copyright 2008-2013 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 optparse import OptionGroup, OptionParser __program__ = "glsa-check" __author__ = "Marius Mauch " __version__ = "1.0" def cb_version(*args, **kwargs): """Callback for --version""" sys.stderr.write("\n"+ __program__ + ", version " + __version__ + "\n") sys.stderr.write("Author: " + __author__ + "\n") sys.stderr.write("This program is licensed under the GPL, version 2\n\n") sys.exit(0) # option parsing parser = OptionParser(usage="%prog