Skip to content

Commit 82c0bd0

Browse files
committed
Update error message for the multi-line about_resource
Signed-off-by: Chin Yeung Li <[email protected]>
1 parent 32b5332 commit 82c0bd0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/attributecode/gen.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def check_newline_in_file_field(component):
9595
if '\n' in component[k]:
9696
if k == u'about_resource':
9797
msg = (
98-
"New line character detected in 'about_resource' for '%s' which is not supported.") % component['about_resource']
98+
"Multiple lines detected in 'about_resource' for '%s' which is not supported.") % component['about_resource']
9999
else:
100100
msg = ("New line character detected in '%s' for '%s' which is not supported."
101101
"\nPlease use ',' to declare multiple files.") % (k, component['about_resource'])
@@ -164,10 +164,11 @@ def load_inventory(location, from_attrib=False, base_dir=None, scancode=False, r
164164
invalid_about_filename = check_about_resource_filename(arp)
165165
if invalid_about_filename and not invalid_about_filename in errors:
166166
errors.append(invalid_about_filename)
167-
167+
"""
168168
newline_in_file_err = check_newline_in_file_field(component)
169169
if newline_in_file_err:
170170
errors.extend(newline_in_file_err)
171+
"""
171172
if errors:
172173
return errors, abouts
173174
except Exception as e:

0 commit comments

Comments
 (0)