Comment 5 for bug 990219

Revision history for this message
Colin Watson (cjwatson) wrote :

I've applied some initial scoring in production. I made a rather more conservative increase than Scott's initial suggestion, because +750 would cause test rebuilds to score many things in main/release above zero (5 + 1000 + 1500 + 750 - 2600 == 655) and that would have undesirable effects. While we could change the copy archive penalty, I think it's sufficient to just apply a rather smaller bonus of +50 to package sets that contribute to image builds. This keeps test rebuilds below zero, but still allows anything in universe that contributes to an image build to beat anything else in universe, which is the principal desired effect here.

  >>> quantal_ps = {ps.name: ps for ps in quantal_ps}
  >>> for image_ps_name in "core desktop-core edubuntu kubuntu lubuntu mythbuntu ubuntu-desktop ubuntu-server ubuntustudio xubuntu".split():
  ... image_ps = quantal_ps[image_ps_name]
  ... image_ps.relative_build_score = 50
  ... image_ps.lp_save()
  ...