Bug#661078: britney: ignore additional packages in Sources index
On 2012-02-24 01:22, Ansgar Burchardt wrote:
> Package: release.debian.org
> Severity: wishlist
> User: email@example.com
> Usertags: britney
> I would like to include additional packages referenced by Built-Using in
> the Sources index at some undefined point in the future. This might
> confuse britney which would need to just ignore them.
>  <http://bugs.debian.org/657212>
I believe Britney already handles this reasonably. Of course, I
assume here that by "ignore" you mean it is (also) okay for Britney not
to include them in the resulting HeidiResult file.
Assuming there will be a source package in Sources only kept due to
Built-Using, then Britney may (or may not) keep its counterpart in
testing until the source package disappears from Sources (in sid). If
it does not have any binaries and it is not in testing, then she will at
least keep it out of testing.
It is possible I am missing a corner case or two, so I am keeping the
bug open for now.
pkg = get_field('Package')
ver = get_field('Version')
# There may be multiple versions of the source package
# (in unstable) if some architectures have out-of-date
# binaries. We only ever consider the source with the
# largest version for migration.
if pkg in sources and
apt_pkg.version_compare(sources[pkg], ver) > 0:
 Example from last nights excuses:
libffi-ruby (- to 0.6.3debian-2)
Maintainer: Micah Anderson
516 days old (needed 10 days)
libffi-ruby has no binaries on any arch
libffi-ruby (source) has new bugs!
Updating libffi-ruby introduces new bugs: #652755