#!/usr/bin/python # Copyright 2008-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ import os import sys try: import portage except ImportError: from os import path as osp sys.path.insert(0, osp.join(osp.dirname(osp.dirname(osp.realpath(__file__))), "pym")) import portage from portage.output import * 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