Commit b4aadd97 authored by Ad Schellevis's avatar Ad Schellevis

(dev) fix dependency check

parent 7c3c3345
...@@ -95,9 +95,11 @@ class DependancyCrawler(object): ...@@ -95,9 +95,11 @@ class DependancyCrawler(object):
function_list = [] function_list = []
for line in open(src_filename,'r').read().split('\n'): for line in open(src_filename,'r').read().split('\n'):
if line.find('function ') > -1 and line.find('(') > -1: if line.find('function ') > -1 and line.find('(') > -1:
if line.find('*') > -1 and line.find('function') > line.find('*'):
continue
function_nm = line.split('(')[0].split(' ')[-1] function_nm = line.split('(')[0].split(' ')[-1]
if function_nm.find('*') == -1:
function_list.append(function_nm) function_list.append(function_nm)
self._all_functions[base_filename] = function_list self._all_functions[base_filename] = function_list
def find_files(self, analyse_dirs=('etc','www', 'captiveportal', 'sbin')): def find_files(self, analyse_dirs=('etc','www', 'captiveportal', 'sbin')):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment