mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-24 19:56:35 +00:00
utils/scanpypi: update hash file indentation formatting
The new .hash convention is to use 2 spaces between fields. Signed-off-by: James Hilliard <james.hilliard1@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
parent
2723ff3333
commit
9fbbf4fd2a
@ -568,12 +568,12 @@ class BuildrootPackage():
|
|||||||
hash_header = '# md5, sha256 from {url}\n'.format(
|
hash_header = '# md5, sha256 from {url}\n'.format(
|
||||||
url=self.metadata_url)
|
url=self.metadata_url)
|
||||||
lines.append(hash_header)
|
lines.append(hash_header)
|
||||||
hash_line = '{method}\t{digest} {filename}\n'.format(
|
hash_line = '{method} {digest} {filename}\n'.format(
|
||||||
method='md5',
|
method='md5',
|
||||||
digest=self.used_url['digests']['md5'],
|
digest=self.used_url['digests']['md5'],
|
||||||
filename=self.filename)
|
filename=self.filename)
|
||||||
lines.append(hash_line)
|
lines.append(hash_line)
|
||||||
hash_line = '{method}\t{digest} {filename}\n'.format(
|
hash_line = '{method} {digest} {filename}\n'.format(
|
||||||
method='sha256',
|
method='sha256',
|
||||||
digest=self.used_url['digests']['sha256'],
|
digest=self.used_url['digests']['sha256'],
|
||||||
filename=self.filename)
|
filename=self.filename)
|
||||||
@ -589,7 +589,7 @@ class BuildrootPackage():
|
|||||||
if not data:
|
if not data:
|
||||||
break
|
break
|
||||||
sha256.update(data)
|
sha256.update(data)
|
||||||
hash_line = '{method}\t{digest} {filename}\n'.format(
|
hash_line = '{method} {digest} {filename}\n'.format(
|
||||||
method='sha256',
|
method='sha256',
|
||||||
digest=sha256.hexdigest(),
|
digest=sha256.hexdigest(),
|
||||||
filename=license_file.replace(self.tmp_extract, '')[1:])
|
filename=license_file.replace(self.tmp_extract, '')[1:])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user