1
0

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:
Stephan Kulow 2013-04-02 10:37:25 +00:00 committed by Git OBS Bridge
commit ba5fb2a9c7
2 changed files with 7 additions and 1 deletions

View File

@ -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

View File

@ -117,7 +117,7 @@ for sig in "${sigs[@]}"; do
infile=${sig%.sig}
cpio -i --to-stdout ${infile#./} <%_sourcedir/@NAME@.cpio.rsasign > ${infile}.sattrs
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"
rm -f "${infile}.sattrs"
mv "$f.tmp" "$f"