Merge ~mwhudson/debian-cd/+git/ubuntu:fix-release-signing into ~ubuntu-cdimage/debian-cd/+git/ubuntu:main

Proposed by Michael Hudson-Doyle
Status: Merged
Merged at revision: 686789472ba2e18eec09f34389175259c124065e
Proposed branch: ~mwhudson/debian-cd/+git/ubuntu:fix-release-signing
Merge into: ~ubuntu-cdimage/debian-cd/+git/ubuntu:main
Diff against target: 15 lines (+2/-1)
1 file modified
tools/scanpackages (+2/-1)
Reviewer Review Type Date Requested Status
Steve Langasek Approve
Review via email: mp+455919@code.launchpad.net

Commit message

tools/scanpackages: strip signature from InRelease in a slightly better way

To post a comment you must log in.
Revision history for this message
Steve Langasek (vorlon) :
review: Needs Information
Revision history for this message
Michael Hudson-Doyle (mwhudson) :
Revision history for this message
Steve Langasek (vorlon) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/tools/scanpackages b/tools/scanpackages
index 91e150b..4002cd7 100755
--- a/tools/scanpackages
+++ b/tools/scanpackages
@@ -57,8 +57,9 @@ $BASEDIR/tools/apt-selection update
57if [ -e $APT_STATE/lists/*_dists_${CODENAME}_InRelease ]; then57if [ -e $APT_STATE/lists/*_dists_${CODENAME}_InRelease ]; then
58 # Strip the MD5Sum, SHA1, and SHA256 fields58 # Strip the MD5Sum, SHA1, and SHA256 fields
59 # Update some other information as well59 # Update some other information as well
60 gpg --verify --output - $APT_STATE/lists/*_dists_${CODENAME}_InRelease 2>/dev/null | \
60 sed -e "s/^Architectures: .*$/Architectures: $ALL_ARCHES/" \61 sed -e "s/^Architectures: .*$/Architectures: $ALL_ARCHES/" \
61 $APT_STATE/lists/*_dists_${CODENAME}_InRelease | gpg | \62 $APT_STATE/lists/*_dists_${CODENAME}_InRelease | \
62 sed -e "s|^Components: .*$|Components: $COMPONENTS|" | \63 sed -e "s|^Components: .*$|Components: $COMPONENTS|" | \
63 perl -ne 'if (/^(MD5Sum|SHA1|SHA256):/i) { $f=1; next } 64 perl -ne 'if (/^(MD5Sum|SHA1|SHA256):/i) { $f=1; next }
64 if ($f) { 65 if ($f) {

Subscribers

People subscribed via source and target branches