Skip to contentSkip to conversation

utils/scanpypi: update hash file indentation formatting

PATCH New James Hilliard 2 participants 2 messages Feb 24, 2020 – Feb 26, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 utils/scanpypi: update hash file indentation formatting

The new .hash convention is to use 2 spaces between fields.

---
 utils/scanpypi | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
utils/scanpypi +3 -3
index 387755bbb8..212dbea85e 100755
@@ -568,12 +568,12 @@ class BuildrootPackage():
             hash_header = '# md5, sha256 from {url}\n'.format(
                 url=self.metadata_url)
             lines.append(hash_header)
-            hash_line = '{method}\t{digest}  {filename}\n'.format(
+            hash_line = '{method}  {digest}  {filename}\n'.format(
                 method='md5',
                 digest=self.used_url['digests']['md5'],
                 filename=self.filename)
             lines.append(hash_line)
-            hash_line = '{method}\t{digest}  {filename}\n'.format(
+            hash_line = '{method}  {digest}  {filename}\n'.format(
                 method='sha256',
                 digest=self.used_url['digests']['sha256'],
                 filename=self.filename)
@@ -589,7 +589,7 @@ class BuildrootPackage():
                     if not data:
                         break
                     sha256.update(data)
-            hash_line = '{method}\t{digest}  {filename}\n'.format(
+            hash_line = '{method}  {digest}  {filename}\n'.format(
                 method='sha256',
                 digest=sha256.hexdigest(),
                 filename=license_file.replace(self.tmp_extract, '')[1:])
Signature · 1 line
2.20.1
#1 lore raw

PATCH 1/1 utils/scanpypi: update hash file indentation formatting

Quoted 6 lines · On Mon, 24 Feb 2020 15:06:30 -0700 James Hilliard <[email protected]>…

The new .hash convention is to use 2 spaces between fields.

---
 utils/scanpypi | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Applied to next, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com