forked from pool/pesign-obs-integration
Accepting request 161512 from Base:System
bnc#808594: Calculate the digest of the padded data section to be consistent with the output file (forwarded request 161510 from gary_lin) OBS-URL: https://build.opensuse.org/request/show/161512 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/pesign-obs-integration?expand=0&rev=5
This commit is contained in:
commit
ba5fb2a9c7
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Mar 26 06:19:45 UTC 2013 - glin@suse.com
|
||||||
|
|
||||||
|
- Calculate the digest of the padded data section to be consistent
|
||||||
|
with the output file (bnc#808594, bnc#811325)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Mar 15 06:19:39 UTC 2013 - coolo@suse.com
|
Fri Mar 15 06:19:39 UTC 2013 - coolo@suse.com
|
||||||
|
|
||||||
|
@ -117,7 +117,7 @@ for sig in "${sigs[@]}"; do
|
|||||||
infile=${sig%.sig}
|
infile=${sig%.sig}
|
||||||
cpio -i --to-stdout ${infile#./} <%_sourcedir/@NAME@.cpio.rsasign > ${infile}.sattrs
|
cpio -i --to-stdout ${infile#./} <%_sourcedir/@NAME@.cpio.rsasign > ${infile}.sattrs
|
||||||
test -s ${infile}.sattrs || exit 1
|
test -s ${infile}.sattrs || exit 1
|
||||||
ohash=$(pesign -n "$nss_db" -h -i "$f")
|
ohash=$(pesign -n "$nss_db" -h -P -i "$f")
|
||||||
pesign -n "$nss_db" -c cert -i "$f" -o "$f.tmp" -d sha256 -I "${infile}.sattrs" -R "$sig"
|
pesign -n "$nss_db" -c cert -i "$f" -o "$f.tmp" -d sha256 -I "${infile}.sattrs" -R "$sig"
|
||||||
rm -f "${infile}.sattrs"
|
rm -f "${infile}.sattrs"
|
||||||
mv "$f.tmp" "$f"
|
mv "$f.tmp" "$f"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user