From: dol-sen Date: Mon, 25 Apr 2011 07:22:11 +0000 (-0700) Subject: move unused function to stuff.py X-Git-Tag: gentoolkit-0.3.0.5~40 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=aa3bfe1ebf070858e3f0dbea5727b1ef1f9616bd;p=gentoolkit.git move unused function to stuff.py --- diff --git a/pym/gentoolkit/revdep_rebuild/rebuild.py b/pym/gentoolkit/revdep_rebuild/rebuild.py index 6c08f5b..e0ab7d1 100644 --- a/pym/gentoolkit/revdep_rebuild/rebuild.py +++ b/pym/gentoolkit/revdep_rebuild/rebuild.py @@ -71,13 +71,6 @@ def print_usage(): print 'and passed directly to emerge.' -def _match_str_in_list(lst, stri): - for l in lst: - if stri.endswith(l): - return l - return False - - def init_logger(settings): """Creates and iitializes our logger according to the settings""" logger = logging.getLogger() diff --git a/pym/gentoolkit/revdep_rebuild/stuff.py b/pym/gentoolkit/revdep_rebuild/stuff.py index 459301f..7b287b1 100644 --- a/pym/gentoolkit/revdep_rebuild/stuff.py +++ b/pym/gentoolkit/revdep_rebuild/stuff.py @@ -31,7 +31,6 @@ def scan(params, files, max_args): return out - def exithandler(signum, frame): sys.exit(1) @@ -43,5 +42,14 @@ def get_masking_status(ebuild): status = ['unavailable'] return status + +def _match_str_in_list(lst, stri): + for l in lst: + if stri.endswith(l): + return l + return False + + + if __name__ == '__main__': print "There is nothing to run here."