~ubuntu-archive/ubuntu-archive-scripts/trunk

« back to all changes in this revision

Viewing changes to archive-reports

  • Committer: Colin Watson
  • Date: 2015-02-19 14:16:20 UTC
  • Revision ID: cjwatson@canonical.com-20150219141620-i4s0c4qaqb2wjv0x
archive-reports: slightly refactor how proposed-migration is run to make it easier to extend

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
DEVEL=vivid
29
29
DEVEL_RTM=14.09
30
30
DEVEL_RTM_FACTORY=14.09-factory
 
31
PROPOSED_MIGRATION_SERIES="vivid"
 
32
PROPOSED_MIGRATION_SERIES_RTM="14.09 14.09-factory"
31
33
 
32
34
mtimes="$(mktemp -d)"
33
35
 
142
144
fi
143
145
 
144
146
pids=
145
 
if release_changed "$DEVEL" || release_changed "$DEVEL-proposed"; then
146
 
        background pids run-proposed-migration
147
 
fi
 
147
run_proposed_migration () {
 
148
        DISTRIBUTION=ubuntu SERIES="$1" run-proposed-migration
 
149
}
 
150
for series in $PROPOSED_MIGRATION_SERIES; do
 
151
        if release_changed "$series" || release_changed "$series-proposed"; then
 
152
                background pids run_proposed_migration "$series"
 
153
        fi
 
154
done
148
155
 
149
156
run_proposed_migration_rtm () {
150
157
        DISTRIBUTION=ubuntu-rtm SERIES="$1" \
152
159
                B2_CONFIG_NOBREAKALL=/home/ubuntu-archive/proposed-migration/britney_nobreakall-rtm.conf \
153
160
                run-proposed-migration
154
161
}
155
 
if release_changed "$DEVEL_RTM" || release_changed "$DEVEL_RTM-proposed"; then
156
 
        background pids run_proposed_migration_rtm "$DEVEL_RTM"
157
 
fi
158
 
if release_changed "$DEVEL_RTM_FACTORY" || release_changed "$DEVEL_RTM_FACTORY-proposed"; then
159
 
        background pids run_proposed_migration_rtm "$DEVEL_RTM_FACTORY"
160
 
fi
 
162
for series in $PROPOSED_MIGRATION_SERIES_RTM; do
 
163
        if release_changed "$series" || release_changed "$series-proposed"; then
 
164
                background pids run_proposed_migration_rtm "$series"
 
165
        fi
 
166
done
161
167
 
162
168
if release_changed "$DEVEL-proposed"; then
163
169
        rsync -aq --delete --prune-empty-dirs \