if not filename.endswith('.gradle'):
continue
path = os.path.join(root, filename)
+ if not os.path.isfile(path):
+ continue
logging.debug("Adapting %s at %s" % (filename, path))
FDroidPopen(['sed', '-i',
if not filename.endswith('.gradle'):
continue
path = os.path.join(dir_path, filename)
+ if not os.path.isfile(path):
+ continue
for line in file(path):
match = version_regex.match(line)
if match:
warnproblem('unknown compressed or binary file', fd)
elif has_extension(fp, 'java') and os.path.isfile(fp):
+ if not os.path.isfile(fp):
+ continue
for line in file(fp):
if 'DexClassLoader' in line:
count += handleproblem('DexClassLoader', fd, fp)