From f8038096f2a1d6869425865292d7c6e980b8d9bb Mon Sep 17 00:00:00 2001 From: fuzzyray Date: Fri, 11 Dec 2009 17:15:35 +0000 Subject: [PATCH] Merge genscripts rev 130 svn path=/trunk/gentoolkit/; revision=721 --- TODO | 11 ++++- bin/glsa-check | 33 ++++++--------- man/equery.1 | 6 +-- pym/gentoolkit/deprecated/helpers.py | 3 -- pym/gentoolkit/equery/belongs.py | 2 +- pym/gentoolkit/equery/changes.py | 6 +-- pym/gentoolkit/equery/check.py | 4 +- pym/gentoolkit/equery/files.py | 6 +-- pym/gentoolkit/equery/list_.py | 2 +- pym/gentoolkit/equery/meta.py | 55 +++++++++++------------- pym/gentoolkit/equery/size.py | 2 +- pym/gentoolkit/equery/uses.py | 15 ++++--- pym/gentoolkit/equery/which.py | 4 +- pym/gentoolkit/helpers.py | 25 ++++------- pym/gentoolkit/metadata.py | 38 ++++++++--------- pym/gentoolkit/package.py | 63 ++++++++++++++++------------ pym/gentoolkit/pprinter.py | 4 +- setup.py | 2 + 18 files changed, 140 insertions(+), 141 deletions(-) diff --git a/TODO b/TODO index 3ffa6d2..859e8df 100644 --- a/TODO +++ b/TODO @@ -34,8 +34,15 @@ equery: +changes +depgraph +Ebuild changes: + - Add: + src_test() { + "${python}" setup.py test || die "testing returned non zero" + } + - Add: + DEPEND on python 2.5 (needed for 'from __future__ import with' and others) + For Next Release: - - find all commits to main gentoolkit svn after rc7 push and merge where - appropriate + - write NEWS file - write a docstring for Package which details especially the change in have cpv as an object, not a string. diff --git a/bin/glsa-check b/bin/glsa-check index fcd4cb0..ab83471 100755 --- a/bin/glsa-check +++ b/bin/glsa-check @@ -6,22 +6,15 @@ import os import sys import codecs -try: - import portage -except ImportError: - sys.path.insert(0, "/usr/lib/portage/pym") - import portage -try: - from portage.output import * -except ImportError: - from output import * +import portage +from portage.output import * from getopt import getopt, GetoptError __program__ = "glsa-check" __author__ = "Marius Mauch " -__version__ = open("/usr/share/gentoolkit/VERSION").read().strip() +__version__ = "svn" optionmap = [ ["-l", "--list", "list the GLSAs"], @@ -55,12 +48,12 @@ try: args, params = getopt(sys.argv[1:], "".join([o[0][1] for o in optionmap]), \ [x[2:] for x in reduce(lambda x,y: x+y, [z[1:-1] for z in optionmap])]) args = [a for a,b in args] - + for option in ["--nocolor", "-n"]: if option in args: nocolor() args.remove(option) - + verbose = False for option in ["--verbose", "-v"]: if option in args: @@ -72,7 +65,7 @@ try: if option in args: list_cve = True args.remove(option) - + least_change = True for option in ["--emergelike", "-e"]: if option in args: @@ -113,7 +106,7 @@ if len(params) <= 0 and mode in ["fix", "test", "pretend", "dump", "inject", "ma mode = "HELP" elif len(params) <= 0 and mode == "list": params.append("affected") - + # show help message if mode == "help" or mode == "HELP": msg = "Syntax: glsa-check