Commit 012b3ccd authored by Carsten Emde's avatar Carsten Emde
Browse files

Multiple filenames of a given library are now correctly considered in the target list

parent e0c9ab5f
......@@ -90,12 +90,12 @@ def createoutput(outputdir, outputformat, machine_to_binary, linked_libraries,
if limit not in linked_libraries:
continue
for lib in linked_libraries[limit]:
fullfilename = filename_to_full_path[lib]
fullfilename = list(fullfilename)[0]
if fullfilename in symlink_to_target:
fullfilename = symlink_to_target[fullfilename]
if fullfilename not in limitsearch:
limitsearch.append(fullfilename)
fullfilenames = filename_to_full_path[lib]
for fullfilename in fullfilenames:
if fullfilename in symlink_to_target:
fullfilename = symlink_to_target[fullfilename]
if fullfilename not in limitsearch:
limitsearch.append(fullfilename)
print("Info: Limiting search to %s" % (limitsearch))
if (len(limitsearch) == 1):
print("Info: No libraries found, halting program execution")
......@@ -220,7 +220,7 @@ def createoutput(outputdir, outputformat, machine_to_binary, linked_libraries,
linked_from[fl] = set()
linked_from[fl].add(filename)
if notarget(fl, limitsearch):
print("Warning: Found linked library '%s', but it was skipped" % (fl))
print("Warning: Found linked library '%s', but it is not a target" % (fl))
if outputformat == 'gexf':
outputfileopen.write("\n</edges>")
......
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