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

« back to all changes in this revision

Viewing changes to archive-reports

  • Committer: Steve Langasek
  • Date: 2023-06-01 16:01:45 UTC
  • Revision ID: steve.langasek@canonical.com-20230601160145-g6plsb7z39dj23ng
Fix sru-autosubscribe to not crash on uploads without .changes files

No changes file -> no bug links -> nothing to do, so skip

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
MIRROR="$HOME/mirror/ubuntu"
25
25
GERMINATE="$HOME/mirror/ubuntu-germinate"
26
26
OUT="$HOME/public_html"
27
 
DEVEL=focal
28
 
PROPOSED_MIGRATION_SERIES="precise trusty xenial bionic disco eoan focal"
 
27
DEVEL=mantic
 
28
PROPOSED_MIGRATION_SERIES="trusty xenial bionic focal jammy kinetic lunar mantic"
29
29
 
30
30
mtimes="$(mktemp -d)"
31
31
 
94
94
        --exclude gutsy\* --exclude hardy\* --exclude intrepid\* \
95
95
        --exclude jaunty\* --exclude karmic\* --exclude lucid\* \
96
96
        --exclude maverick\* --exclude natty\* --exclude oneiric\* \
97
 
        --exclude quantal\* --exclude raring\* --exclude saucy\* \
98
 
        --exclude utopic\* --exclude wily\* \
 
97
        --exclude precise\* --exclude quantal\* --exclude raring\* \
 
98
        --exclude saucy\* --exclude utopic\* --exclude wily\* \
99
99
        --exclude yakkety\* --exclude zesty\* --exclude artful\* \
100
 
        --exclude cosmic\* \
 
100
        --exclude cosmic\* --exclude disco\* --exclude eoan\* \
 
101
        --exclude groovy\* --exclude hirsute\* --exclude impish\* \
101
102
        --include Packages\* --include Sources\* --include Release\* \
102
103
        --include udeb.list --include \*\*/installer-\*/current \
103
104
        --include "**/$DEVEL/Contents-*" \
126
127
done
127
128
background_wait chdist_pids
128
129
 
129
 
if mtime_changed "$MIRROR/.*/Release"; then
130
 
        background pids run-apt-mirror-snapshot
131
 
fi
132
 
 
133
130
pids=
134
131
run_proposed_migration () {
135
132
        DISTRIBUTION=ubuntu SERIES="$1" run-proposed-migration
136
133
}
 
134
 
 
135
check_git_uptodate() {
 
136
        cd "$1"
 
137
        git fetch origin -q
 
138
        branch=$(git symbolic-ref --short -q HEAD)
 
139
        [ -z "$(git diff origin/$branch..$branch)" ]
 
140
}
 
141
 
137
142
for series in $PROPOSED_MIGRATION_SERIES; do
138
143
        if release_changed "$series" || release_changed "$series-proposed" || \
139
144
           release_changed "$series-updates" || \
140
 
           pm_pending_tests "$series"; then
 
145
           pm_pending_tests "$series" || \
 
146
           ! check_git_uptodate "$HOME/proposed-migration/data/${series}-proposed/Hints"
 
147
        then
141
148
                background pids run_proposed_migration "$series"
142
149
        fi
143
150
done
144
151
 
145
 
# Both update-transitions and run-britney need this.
146
 
rsync -aq --delete --prune-empty-dirs \
147
 
        "$MIRROR/dists/" \
148
 
        "/srv/chroots/trusty-transitions/srv/transitions/mirror/ubuntu/dists/"
149
 
 
150
152
if release_changed "$DEVEL-proposed"; then
151
153
        background pids update-transitions
152
154
fi
153
155
 
154
 
if release_changed "$DEVEL"; then
155
 
        background pids run-britney
156
 
fi
157
 
 
158
156
# Now update all the other chdist configurations, and wait for that to
159
157
# finish before doing anything else.
160
158
chdist_pids=
184
182
        # publishing because that would probably cause us to break our
185
183
        # 30-minute window.)
186
184
        background pids \
187
 
                env PYTHONPATH="$HOME/ubuntu-archive-tools:$HOME/germinate" \
 
185
                env PYTHONPATH="${PYTHONPATH:+$PYTHONPATH:}$HOME/ubuntu-archive-tools:$HOME/germinate" \
188
186
                extra-germinate -o "$HOME/extra-germinate" ubuntu
189
187
fi
190
188
 
210
208
                                -d "$OUT/$name.dot" -o "$OUT/$name.txt.new" \
211
209
                                --html-output-file "$OUT/$name.html" \
212
210
                                --csv-file "$OUT/$name.csv" \
 
211
                                --exclude "community-maas" \
213
212
                                "$@"
214
213
                        if [ "$name" = component-mismatches ]; then
215
214
                                process-component-mismatches-diff \
216
215
                                        "$OUT/$name.txt" "$OUT/$name.txt.new"
217
216
                        fi
218
217
                        mv "$OUT/$name.txt.new" "$OUT/$name.txt"
219
 
                        dot -Tsvg -Gdpi=55 -o "$OUT/$name.svg" "$OUT/$name.dot"
 
218
                        dot -Tsvg -o "$OUT/$name.svg" "$OUT/$name.dot"
220
219
                }
221
220
                background pids component_mismatches component-mismatches
222
221
                background pids component_mismatches component-mismatches-proposed \