shlib_provider = {}
list_re = re.compile('^(.*)\.list$')
+ armhf_re = re.compile('^(armhf.*)\.list$')
for dir in [shlibs_dir]:
if not os.path.exists(dir):
continue
for file in os.listdir(dir):
m = list_re.match(file)
if m:
+ if bool(armhf_re.match(file)) != pkg.startswith('armhf'):
+ continue
dep_pkg = m.group(1)
fd = open(os.path.join(dir, file))
lines = fd.readlines()