Skip to content

Commit 4975af7

Browse files
committed
Minor bug fixes
Signed-off-by: Chin Yeung Li <[email protected]>
1 parent 8dd5dae commit 4975af7

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/attributecode/gen.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,8 @@ def load_inventory(mapping, location, base_dir, license_notice_text_location=Non
150150
loc = posixpath.join(base_dir, afp)
151151
about = model.About(about_file_path=afp)
152152
about.location = loc
153-
ld_errors = about.load_dict(fields, base_dir, license_notice_text_location, with_empty=False)
153+
running_inventory = False
154+
ld_errors = about.load_dict(fields, base_dir, running_inventory, license_notice_text_location, with_empty=False)
154155
# 'about_resource' field will be generated during the process.
155156
# No error need to be raise for the missing 'about_resource'.
156157
for e in ld_errors:

src/attributecode/templates/default_html.template

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@
3030
<h3 class="component-name">{{ about_object.name.value }}
3131
{% if about_object.version.value %}{{ about_object.version.value }}{% endif %}
3232
</h3>
33-
{% if about_object.license.value %}
33+
{% if about_object.license_expression.value %}
3434
<p>This component is licensed under
35-
{{ about_object.license.value }}
35+
{{ about_object.license_expression.value }}
3636
{% endif %}
3737
{% if about_object.copyright.value %}
3838
<pre>{{about_object.copyright.value}}</pre>
@@ -43,7 +43,7 @@
4343
{% endfor %}
4444
{% endif %}
4545
{% if about_object.license.value %}
46-
{% for license_key in about_object.license.value.split() %}
46+
{% for license_key in about_object.license.value %}
4747
{% if license_key in common_licenses %}
4848
<p>Full text of
4949
<a class="{{ license_key }}" href="#component-license-{{ license_key }}">

0 commit comments

Comments
 (0)