~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/archiveuploader/nascentuploadfile.py

  • Committer: Michael Nelson
  • Date: 2010-08-26 06:29:02 UTC
  • mto: This revision was merged to the branch mainline in revision 11447.
  • Revision ID: michael.nelson@canonical.com-20100826062902-k0nk0j6ggb4a7375
Fixed some test failures (use of len() now that its a result set, and two occurrences of the old name in ftpmaster-tools).

Show diffs side-by-side

added added

removed removed

Lines of Context:
751
751
        if spphs:
752
752
            # We know there's only going to be one release because
753
753
            # version is unique.
754
 
            assert len(spphs) == 1, "Duplicated ancestry"
 
754
            assert spphs.count() == 1, "Duplicated ancestry"
755
755
            sourcepackagerelease = spphs[0].sourcepackagerelease
756
756
        else:
757
757
            # XXX cprov 2006-08-09 bug=55774: Building from ACCEPTED is