Commit 11611163 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 89056d32
......@@ -52,6 +52,7 @@ PkgInfo = namedtuple('PkgInfo', [
def bom_software(installed_software_path): # -> {} (name,kind) -> PkgInfo
bom = {}
def addbom(urlpath, kind, version=None):
license = None # XXX temp
name, ver = namever(urlpath)
if version is not None:
assert ver is None
......@@ -84,7 +85,8 @@ def bom_software(installed_software_path): # -> {} (name,kind) -> PkgInfo
else:
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)
bkey = (name, kind)
if bkey in bom:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment