Merge lp:~mitya57/ubuntu-sponsoring/bold-fix-for-new-packages into lp:~ubuntu-dev/ubuntu-sponsoring/trunk

Proposed by Dmitry Shachnev
Status: Merged
Merged at revision: 140
Proposed branch: lp:~mitya57/ubuntu-sponsoring/bold-fix-for-new-packages
Merge into: lp:~ubuntu-dev/ubuntu-sponsoring/trunk
Diff against target: 23 lines (+6/-2)
1 file modified
sponsors-page.py (+6/-2)
To merge this branch: bzr merge lp:~mitya57/ubuntu-sponsoring/bold-fix-for-new-packages
Reviewer Review Type Date Requested Status
Daniel Holbach Approve
Review via email: mp+208961@code.launchpad.net

Description of the change

Currently people who are in ~ubuntu-dev but not in ~motu are highlighted "bold" for needs-packaging bugs. One fix would be to explicitly check membership in ~motu, but I applied a hack that replaces "ubuntu" with "mathjax-docs" instead (a package that is not in any packageset or main).

To post a comment you must log in.
Revision history for this message
Daniel Holbach (dholbach) wrote :

Thanks. Merged.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'sponsors-page.py'
2--- sponsors-page.py 2012-09-07 17:32:18 +0000
3+++ sponsors-page.py 2014-03-02 09:56:02 +0000
4@@ -30,14 +30,18 @@
5 "package-import",
6 )
7
8+# A package that is outside of main and package sets
9+UNIVERSE_PACKAGE = "mathjax-docs"
10+
11 def htmlify_name(person, package, devs, distribution):
12 if not person:
13 return ""
14 name = person.name
15 if name not in devs:
16 return name
17- if package == "ubuntu" or \
18- launchpad.person_can_upload(distribution, person, package):
19+ if package == "ubuntu":
20+ package = UNIVERSE_PACKAGE
21+ if launchpad.person_can_upload(distribution, person, package):
22 return "<b>%s</b>" % name
23 return "<i>%s</i>" % name
24

Subscribers

People subscribed via source and target branches