generated from aboutcode-org/skeleton
-
-
Notifications
You must be signed in to change notification settings - Fork 38
Closed
Description
To get the Name, Version & Arch. from a debian file name we use get_nva function ( https://github.com/nexB/debian-inspector/blob/main/src/debian_inspector/package.py#L113 ) this leads to two problems:
- The version returned from
get_nvais a Version Object and we cannot directly pass it to the PackageURL version, see https://github.com/nexB/purldb/blob/main/minecode/visitors/debian.py#L117 - Also the IndexVisitor function tries to generate purls for description file (this will lead to error as
get_nvado not handles .dsc files), generating URI is enough for them. - https://docs.python.org/3/library/gzip.html#gzip.open quotes that
The mode argument can be any of 'r', 'rb', 'a', 'ab', 'w', 'wb', 'x' or 'xb' for binary mode, or 'rt', 'at', 'wt', or 'xt' for text mode. The default is 'rb', since we later need do operation on this content ( see https://github.com/nexB/purldb/blob/main/minecode/visitors/debian.py#L89 ) we need to either use'rt'ordecode("utf-8").
Metadata
Metadata
Assignees
Labels
No labels