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

Get metadata for and scan debian packages from Purls #300

Merged
merged 15 commits into from
Mar 15, 2024

Conversation

AyanSinhaMahapatra
Copy link
Contributor

Reference: #245

Reference: #245
Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
Refactor code to not save package metadata scan results
as archives, instead scan metadata to be used as base package data
and then scan and store package records for binary/source archives.

Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
* Supports purl2meta from ubuntu package URLs
* Supports getting package information from debian copyrights

Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
Updates SCTK to latest develop with aboutcode-org/scancode-toolkit#3682
to have debian package releated improvements and also regen
related test fixtures.

Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
Copy link
Contributor

@pombredanne pombredanne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!
Please drop the maven parts out of this and consider adding a few tests

* Add source_purl to the index_packages serializer
* Use correct purl qualifier for debian package arch

Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
Copy link
Contributor

@JonoYang JonoYang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AyanSinhaMahapatra I left some comments regarding empty docstrings in functions and a migration for the purldb Package model update.

minecode/visitors/debian.py Show resolved Hide resolved
minecode/visitors/debian.py Show resolved Hide resolved
minecode/visitors/debian.py Show resolved Hide resolved
minecode/visitors/debian.py Show resolved Hide resolved
packagedb/api.py Outdated Show resolved Hide resolved
packagedb/models.py Outdated Show resolved Hide resolved
Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
requirements.txt Outdated Show resolved Hide resolved
Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
@pombredanne
Copy link
Contributor

Please merge!

@AyanSinhaMahapatra AyanSinhaMahapatra merged commit f64a879 into main Mar 15, 2024
8 checks passed
@AyanSinhaMahapatra AyanSinhaMahapatra deleted the add-debian-purl2meta branch March 15, 2024 14:58
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.

4 participants