convert to gentoolkit's standard tab indent.
[gentoolkit.git] / pym / gentoolkit / revdep_rebuild / stuff.py
index d1539086ced4fa8625fbbfe405ba64d448d859ed..b1b6709eeeb5a83f67f252bf0c5e6899244b949b 100644 (file)
@@ -6,41 +6,41 @@ import portage
 
 # util. functions
 def call_program(args):
-    ''' Calls program with specified parameters and returns stdout '''
-    subp = subprocess.Popen(args, stdout=subprocess.PIPE, \
-                                stderr=subprocess.PIPE)
-    stdout, stderr = subp.communicate()
-    return stdout
+       ''' Calls program with specified parameters and returns stdout '''
+       subp = subprocess.Popen(args, stdout=subprocess.PIPE, \
+                                                               stderr=subprocess.PIPE)
+       stdout, stderr = subp.communicate()
+       return stdout
 
 
 def scan(params, files, max_args):
-    ''' Calls scanelf with given params and files to scan.
-        @param params is list of parameters that should be passed into scanelf app.
-        @param files list of files to scan.
-        @param max_args number of files to process at once
+       ''' Calls scanelf with given params and files to scan.
+               @param params is list of parameters that should be passed into scanelf app.
+               @param files list of files to scan.
+               @param max_args number of files to process at once
 
-        When files count is greater CMD_MAX_ARGS, it'll be divided
-        into several parts
+               When files count is greater CMD_MAX_ARGS, it'll be divided
+               into several parts
 
-        @return scanelf output (joined if was called several times)
-    '''
-    out = []
-    for i in range(0, len(files), max_args):
-        out += call_program(['scanelf'] + params + files[i:i+max_args]).strip().split('\n')
-    return out
+               @return scanelf output (joined if was called several times)
+       '''
+       out = []
+       for i in range(0, len(files), max_args):
+               out += call_program(['scanelf'] + params + files[i:i+max_args]).strip().split('\n')
+       return out
 
 
 
 def exithandler(signum, frame):
-    sys.exit(1)
+       sys.exit(1)
 
 
 def get_masking_status(ebuild):
-    try:
-        status = portage.getmaskingstatus(ebuild)
-    except KeyError:
-        status = ['deprecated']
-    return status
+       try:
+               status = portage.getmaskingstatus(ebuild)
+       except KeyError:
+               status = ['deprecated']
+       return status
 
 if __name__ == '__main__':
-    print "There is nothing to run here."
+       print "There is nothing to run here."