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
=== added file 'finalize.d/10-generate-ls-lR'
--- finalize.d/10-generate-ls-lR 1970-01-01 00:00:00 +0000
+++ finalize.d/10-generate-ls-lR 2014-04-15 16:09:21 +0000
@@ -0,0 +1,13 @@
1#! /bin/sh
2#
3# Generate an ls-lR of each archive.
4if [ "$SECURITY_UPLOAD_ONLY" != "yes" ]
5then
6 for DIR in $ARCHIVEROOTS
7 do
8 cd -- "$DIR"
9 rm -f ls-lR.gz
10 TZ=UTC ls -lR | gzip -9n > .ls-lR.gz.new
11 mv .ls-lR.gz.new ls-lR.gz
12 done
13fi
014
=== renamed file 'finalize.d/10-germinate' => 'finalize.d/20-germinate'

Subscribers

People subscribed via source and target branches