Merge lp:~wgrant/ubuntu-archive-publishing/ls-lR into lp:ubuntu-archive-publishing

Proposed by William Grant
Status: Merged
Merged at revision: 41
Proposed branch: lp:~wgrant/ubuntu-archive-publishing/ls-lR
Merge into: lp:ubuntu-archive-publishing
Diff against target: 19 lines (+13/-0)
1 file modified
finalize.d/10-generate-ls-lR (+13/-0)
To merge this branch: bzr merge lp:~wgrant/ubuntu-archive-publishing/ls-lR
Reviewer Review Type Date Requested Status
Ubuntu Package Archive Administrators Pending
Review via email: mp+215916@code.launchpad.net

Commit message

Generate ls-lR.gz in run-parts rather than the core LP publisher, so we can trigger proposed-migration immediately after the dists switch.

Description of the change

We want to trigger proposed-migration as soon as Launchpad performs the dists switch. Rather than adding a new run-parts hook, we'll reuse finalize.d and move the expensive bit between the dists switch and finalize.d (ls-lR generation) into a later step of finalize.d.

This branch adds ls-lR generation to finalize.d, so we can remove it from Launchpad. The proposed-migration trigger will be added later.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file 'finalize.d/10-generate-ls-lR'
2--- finalize.d/10-generate-ls-lR 1970-01-01 00:00:00 +0000
3+++ finalize.d/10-generate-ls-lR 2014-04-15 16:09:21 +0000
4@@ -0,0 +1,13 @@
5+#! /bin/sh
6+#
7+# Generate an ls-lR of each archive.
8+if [ "$SECURITY_UPLOAD_ONLY" != "yes" ]
9+then
10+ for DIR in $ARCHIVEROOTS
11+ do
12+ cd -- "$DIR"
13+ rm -f ls-lR.gz
14+ TZ=UTC ls -lR | gzip -9n > .ls-lR.gz.new
15+ mv .ls-lR.gz.new ls-lR.gz
16+ done
17+fi
18
19=== renamed file 'finalize.d/10-germinate' => 'finalize.d/20-germinate'

Subscribers

People subscribed via source and target branches