move unused function to stuff.py
authordol-sen <brian.dolbec@gmail.com>
Mon, 25 Apr 2011 07:22:11 +0000 (00:22 -0700)
committerPaul Varner <fuzzyray@gentoo.org>
Tue, 12 Jul 2011 21:29:01 +0000 (16:29 -0500)
pym/gentoolkit/revdep_rebuild/rebuild.py
pym/gentoolkit/revdep_rebuild/stuff.py

index 6c08f5beef34c62913e81dffd70bccc6d8ae97bc..e0ab7d12869d9e7bed0535f08b6f251060190da7 100644 (file)
@@ -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()
index 459301f433c9f3f10ac98f1bc66b6f7843f81821..7b287b196a33c10571e90a4dcc4a7a23ac5e695b 100644 (file)
@@ -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."