Merge lp:~cjwatson/ubuntu-archive-publishing/inline-release into lp:ubuntu-archive-publishing

Proposed by Colin Watson on 2015-10-06
Status: Merged
Merged at revision: 72
Proposed branch: lp:~cjwatson/ubuntu-archive-publishing/inline-release
Merge into: lp:ubuntu-archive-publishing
Diff against target: 19 lines (+12/-0)
1 file modified
publish-distro.d/10-sign-releases (+12/-0)
To merge this branch: bzr merge lp:~cjwatson/ubuntu-archive-publishing/inline-release
Reviewer Review Type Date Requested Status
Colin Watson Approve on 2015-10-07
Review via email: mp+273622@code.launchpad.net

Commit Message

Add clearsigned InRelease files for archives.

Description of the Change

Add clearsigned InRelease files for archives.

This only applies to the primary archive; PPAs and partner are already done, or will be once they get new publications. I believe I've made sure that all the relevant mirroring scripts and other infrastructure will cope with this.

To post a comment you must log in.
73. By Colin Watson on 2015-10-07

Clarify log message.

Colin Watson (cjwatson) wrote :

00:24 <infinity> cjwatson: Looks reasonable, though "(re-)signing $CANDIDATE inline" seems a little harder to parse than just "(re-)signing $INRELEASE" would be, no?
00:24 <infinity> cjwatson: All looks logically sane, though.

I've fixed that and will take that as an approve vote from Adam.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'publish-distro.d/10-sign-releases'
2--- publish-distro.d/10-sign-releases 2015-09-26 01:01:27 +0000
3+++ publish-distro.d/10-sign-releases 2015-10-07 09:59:07 +0000
4@@ -86,3 +86,15 @@
5 touch --reference "$CANDIDATE" "$CANDIDATE.gpg"
6 fi
7 done
8+
9+for CANDIDATE in $RELEASE_FILES
10+do
11+ INRELEASE="${CANDIDATE%/Release}/InRelease"
12+ if [ ! -f "$INRELEASE" ] || [ "$CANDIDATE" -nt "$INRELEASE" ]; then
13+ opts="$(gpg_opts "$CANDIDATE")"
14+ echo "$(date -R): (re-)signing $INRELEASE ($opts)"
15+ gpg --yes --clearsign --armor -o "$INRELEASE" \
16+ --no-permission-warning $opts "$CANDIDATE"
17+ touch --reference "$CANDIDATE" "$INRELEASE"
18+ fi
19+done

Subscribers

People subscribed via source and target branches