Add new argument package_adder
to DatafileHandler.assemble()
#3034
Labels
package_adder
to DatafileHandler.assemble()
#3034
We want to reuse the code from the
assembly()
method of the differentPackageHandler
s in scancode.io, and the current method of associating Packages to Resources (in theassembly()
methods), where we appendpackage_uid
toresource.for_packages
, does not work there. We need to be able to pass in a function that performs the Package - Resource association, so we can use theassembly()
methods in different contexts.The
package_adder
argument is a function that takes in apackage_uid
,resource
, andcodebase
. It is used in places where we want to associate a Resource to a Package using thepackage_uid
.The text was updated successfully, but these errors were encountered: