Skip to content

Commit d7ea066

Browse files
committed
Use dev branch of go-inspector #3967
* Update ChefMetadataFormatter Signed-off-by: Jono Yang <[email protected]>
1 parent 42cb443 commit d7ea066

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

requirements-linux.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
packagedcode-msitools==0.101.210706
22
regipy==3.1.0
33
rpm-inspector-rpm==4.16.1.3.210404
4-
go-inspector==0.3.1
4+
go-inspector @ git+https://github.com/aboutcode-org/go-inspector.git@7ca6f61998bad6ce40ed918e25b9b8a5e026e151

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ packages =
149149
rpm_inspector_rpm >= 4.16.1.3; platform_system == 'Linux'
150150
regipy >= 3.1.0; platform_system == 'Linux'
151151
packagedcode_msitools >= 0.101.210706; platform_system == 'Linux'
152-
go-inspector >= 0.3.1; platform_system == 'Linux'
152+
go-inspector @ git+https://github.com/aboutcode-org/go-inspector.git@7ca6f61998bad6ce40ed918e25b9b8a5e026e151
153153

154154
# use 7zip, libarchive, and libmagic provided on the system
155155
system_provided =

src/packagedcode/chef.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def format(self, tokens, outfile):
114114
value = value[1:-1]
115115
line.append(value)
116116

117-
if ttype in (Token.Text,) and value.endswith('\n') and line:
117+
if ttype in (Token.Text, Token.Text.Whitespace) and value.endswith('\n') and line:
118118
# The field name should be the first element in the list
119119
key = line.pop(0)
120120
# Join all tokens as a single string

0 commit comments

Comments
 (0)