Merge lp:~rbalint/britney/britney1-list-update-excuse-bugs into lp:~ubuntu-release/britney/britney1-ubuntu

Proposed by Balint Reczey
Status: Merged
Merge reported by: Balint Reczey
Merged at revision: not available
Proposed branch: lp:~rbalint/britney/britney1-list-update-excuse-bugs
Merge into: lp:~ubuntu-release/britney/britney1-ubuntu
Diff against target: 59 lines (+20/-5)
1 file modified
britney (+20/-5)
To merge this branch: bzr merge lp:~rbalint/britney/britney1-list-update-excuse-bugs
Reviewer Review Type Date Requested Status
Adam Conrad (community) Approve
Review via email: mp+372853@code.launchpad.net

This proposal supersedes a proposal from 2019-09-17.

To post a comment you must log in.
327. By Balint Reczey

List bugs tagged as update-excuse(-<release>) in ExcuseBugs

LP: #1683749

Revision history for this message
Adam Conrad (adconrad) wrote :

Looks sane enough.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'britney'
2--- britney 2019-08-29 12:27:02 +0000
3+++ britney 2019-09-17 09:29:41 +0000
4@@ -170,14 +170,24 @@
5 bugs $DATA_B2
6 fi
7
8+excuse_bugs() {
9+ tagged_bugs $1 update-excuse ExcuseBugs
10+}
11+
12 blocks () {
13- local tags
14+ tagged_bugs $1 block-proposed Blocks
15+}
16+
17+tagged_bugs () {
18+ local tag_template tags output_file
19+ tag_template=$2
20+ output_file=$3
21 [ "$DISTRIBUTION" = ubuntu ] || return 0
22 mkdir -p "$1/$SERIES-proposed"
23 if [ "$SERIES" = "$DEFAULT_SERIES" ]; then
24- tags="block-proposed block-proposed-$SERIES"
25+ tags="$tag_template $tag_template-$SERIES"
26 else
27- tags="block-proposed-$SERIES"
28+ tags="$tag_template-$SERIES"
29 fi
30 python -c '
31 from __future__ import print_function
32@@ -229,13 +239,17 @@
33 print("%s %d %d" %
34 (os.path.basename(target.self_link), bug.id,
35 calendar.timegm(date.timetuple())))
36-' "$LP_SERVICE" "$DISTRIBUTION" "$tags" >"$1/$SERIES-proposed/Blocks.new"
37- mv "$1/$SERIES-proposed/Blocks.new" "$1/$SERIES-proposed/Blocks"
38+' "$LP_SERVICE" "$DISTRIBUTION" "$tags" >"$1/$SERIES-proposed/$output_file.new"
39+ mv "$1/$SERIES-proposed/$output_file.new" "$1/$SERIES-proposed/$output_file"
40 }
41 if option blocks; then
42 echo BLOCKS:
43 blocks $DATA_B2
44 fi
45+if option excuse_bugs; then
46+ echo EXCUSE BUGS:
47+ excuse_bugs $DATA_B2
48+fi
49
50 pkg_lists () {
51 for suite in $SERIES $SERIES-proposed; do
52@@ -504,6 +518,7 @@
53 rm -f $HTML/$SERIES/update_output_notest.txt
54 fi
55 cp $DATA_B2/$SERIES-proposed/Blocks $HTML/$SERIES/blocks.txt
56+ cp $DATA_B2/$SERIES-proposed/ExcuseBugs $HTML/$SERIES/excuse-bugs.txt || true
57 fi
58 #gzip -9 < $HTML/$SERIES/update_excuses.html > $HTML/$SERIES/update_excuses.html.gz
59 #gzip -9 < $HTML/$SERIES/update_output.txt > $HTML/$SERIES/update_output.txt.gz

Subscribers

People subscribed via source and target branches