import oe.cachedpath
-def runstrip(arg):
+def runstrip(file, elftype, strip, extra_strip_sections=''):
# Function to strip a single file, called from split_and_strip_files below
# A working 'file' (one which works on the target architecture)
#
# 8 - shared library
# 16 - kernel module
- if len(arg) == 3:
- (file, elftype, strip) = arg
- extra_strip_sections = ''
- else:
- (file, elftype, strip, extra_strip_sections) = arg
-
newmode = None
if not os.access(file, os.W_OK) or os.access(file, os.R_OK):
origmode = os.stat(file)[stat.ST_MODE]
return ft
-def filedeprunner(arg):
+def filedeprunner(pkg, pkgfiles, rpmdeps, pkgdest):
import re, subprocess, shlex
- (pkg, pkgfiles, rpmdeps, pkgdest) = arg
provides = {}
requires = {}
items = list(items)
while (items and not errors) or launched:
if not errors and items and len(launched) < max_process:
- args = (items.pop(),)
+ args = items.pop()
+ if not type(args) is tuple:
+ args = (args,)
if extraargs is not None:
args = args + extraargs
p = ProcessLaunch(target=target, args=args)