gencontrol_signed.py: Fix silly errors in certificate fingerprint handling
I thought I had tested my previous changes, but evidently not. - Fix syntax error in assertion - Add digest algorithm argument to get_cert_fingerprint() call
This commit is contained in:
parent
9d953ac0e1
commit
1dce7a1eb1
|
@ -237,7 +237,7 @@ linux-signed-@arch@ (@signedsourceversion@) @distribution@; urgency=@urgency@
|
||||||
assert state == MIDDLE
|
assert state == MIDDLE
|
||||||
state = BEGIN
|
state = BEGIN
|
||||||
else:
|
else:
|
||||||
assert line[0] != '-':
|
assert line[0] != '-'
|
||||||
assert state == MIDDLE
|
assert state == MIDDLE
|
||||||
certs[-1].append(line)
|
certs[-1].append(line)
|
||||||
assert state == BEGIN
|
assert state == BEGIN
|
||||||
|
@ -264,7 +264,7 @@ linux-signed-@arch@ (@signedsourceversion@) @distribution@; urgency=@urgency@
|
||||||
{'sig_type': 'linux-module',
|
{'sig_type': 'linux-module',
|
||||||
'file': '%s/%s' %
|
'file': '%s/%s' %
|
||||||
(root[len(package_dir) + 1 :], name)})
|
(root[len(package_dir) + 1 :], name)})
|
||||||
package_certs = [get_cert_fingerprint(cert)
|
package_certs = [get_cert_fingerprint(cert, 'sha256')
|
||||||
for cert in get_certs(cert_file_name)]
|
for cert in get_certs(cert_file_name)]
|
||||||
assert len(package_certs) >= 1
|
assert len(package_certs) >= 1
|
||||||
all_files[image_package_name] = {
|
all_files[image_package_name] = {
|
||||||
|
|
Loading…
Reference in New Issue