Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nxd-bom
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
nxd-bom
Commits
11611163
Commit
11611163
authored
Jun 08, 2023
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
89056d32
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
nxdbom/__init__.py
nxdbom/__init__.py
+3
-1
No files found.
nxdbom/__init__.py
View file @
11611163
...
@@ -52,6 +52,7 @@ PkgInfo = namedtuple('PkgInfo', [
...
@@ -52,6 +52,7 @@ PkgInfo = namedtuple('PkgInfo', [
def
bom_software
(
installed_software_path
):
# -> {} (name,kind) -> PkgInfo
def
bom_software
(
installed_software_path
):
# -> {} (name,kind) -> PkgInfo
bom
=
{}
bom
=
{}
def
addbom
(
urlpath
,
kind
,
version
=
None
):
def
addbom
(
urlpath
,
kind
,
version
=
None
):
license
=
None
# XXX temp
name
,
ver
=
namever
(
urlpath
)
name
,
ver
=
namever
(
urlpath
)
if
version
is
not
None
:
if
version
is
not
None
:
assert
ver
is
None
assert
ver
is
None
...
@@ -84,7 +85,8 @@ def bom_software(installed_software_path): # -> {} (name,kind) -> PkgInfo
...
@@ -84,7 +85,8 @@ def bom_software(installed_software_path): # -> {} (name,kind) -> PkgInfo
else
:
else
:
raise
NotImplementedError
(
'TODO url for kind %r (urlpath: %r)'
%
(
kind
,
urlpath
))
raise
NotImplementedError
(
'TODO url for kind %r (urlpath: %r)'
%
(
kind
,
urlpath
))
license
=
None
if
license
is
None
:
# XXX temp
license
=
'?'
info
=
PkgInfo
(
name
,
ver
,
kind
,
url
,
license
)
info
=
PkgInfo
(
name
,
ver
,
kind
,
url
,
license
)
bkey
=
(
name
,
kind
)
bkey
=
(
name
,
kind
)
if
bkey
in
bom
:
if
bkey
in
bom
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment