Only issue "From wrong source" for binaries not at the same version in testing

Same-version could happen for merged binaries in partial-unstable mode.
ubuntu/dry-run
Colin Watson 12 years ago committed by Iain Lane
parent 77a2a0df19
commit 5f95cf771e

@ -138,12 +138,13 @@ class ExcuseFinder(object):
# if the new binary package is not from the same source as the testing one, then skip it # if the new binary package is not from the same source as the testing one, then skip it
# this implies that this binary migration is part of a source migration # this implies that this binary migration is part of a source migration
if source_u.version == pkgsv and source_t.version != pkgsv: if source_u.version == pkgsv and source_t.version != pkgsv:
anywrongver = True if binary_t is None or binary_t.version != binary_u.version:
excuse.add_verdict_info( anywrongver = True
wrong_verdict, excuse.add_verdict_info(
"From wrong source: %s %s (%s not %s)" % wrong_verdict,
(pkg_name, binary_u.version, pkgsv, source_t.version)) "From wrong source: %s %s (%s not %s)" %
continue (pkg_name, binary_u.version, pkgsv, source_t.version))
continue
# cruft in unstable # cruft in unstable
if source_u.version != pkgsv and source_t.version != pkgsv: if source_u.version != pkgsv and source_t.version != pkgsv:

Loading…
Cancel
Save