Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update FileData object and scancode executor #577

Closed
wants to merge 2 commits into from

Conversation

nishakm
Copy link
Contributor

@nishakm nishakm commented Mar 10, 2020

This is work towards #480

The first commit fixes execution of the scancode extension.
The second commit adds a new method to the FileData
class along with a test.

Signed-off-by: Nisha K [email protected]

Nisha K added 2 commits March 10, 2020 16:22
Give get_file_command the FileData object not the file path within.

Signed-off-by: Nisha K <[email protected]>
In order to consolidate file level data collected using different
methods, we need some way of consolidating and updating FileData
objects. For this, we introduce the merge method to the FileData
class. This method will take another FileData class and will replace
the properties in the receiving object with the ones in the given
object, provided the file path, checksum type and checksum are the
same. Here we assume that if a file has the same contents and the
same location, it is the same file and the information collected
for it is the same.

Added appropriate tests for this method.

Signed-off-by: Nisha K <[email protected]>
@nishakm nishakm requested a review from rnjudge March 11, 2020 02:13
@nishakm nishakm closed this Mar 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant