~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/soyuz/model/archive.py

[r=jtv][no-qa] Make the "pocket" argument of
        IArchive.getPublishedSources also work with an iterable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
554
554
                    distroseries.id)
555
555
 
556
556
        if pocket is not None:
 
557
            try:
 
558
                pockets = tuple(pocket)
 
559
            except TypeError:
 
560
                pockets = (pocket,)
557
561
            storm_clauses.append(
558
 
                SourcePackagePublishingHistory.pocket == pocket)
 
562
                "SourcePackagePublishingHistory.pocket IN %s " %
 
563
                   sqlvalues(pockets))
559
564
 
560
565
        if created_since_date is not None:
561
566
            clauses.append(