~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Raphael Badin
  • Date: 2011-08-11 14:47:01 UTC
  • mto: This revision was merged to the branch mainline in revision 13714.
  • Revision ID: raphael.badin@canonical.com-20110811144701-3q694t8a7f252h86
Expand IDS checks to the pockets copied, limit IDS checks to the architectures copied.

Show diffs side-by-side

added added

removed removed

Lines of Context:
864
864
            present.
865
865
        :param name: optional source package release name for which to add a
866
866
            query clause if present.
867
 
        :param pocket: optional pocket for which to add a query clause if
868
 
            present.
 
867
        :param pocket: optional pocket or pocket list for which to add a
 
868
            query clause if present.
869
869
        :param arch_tag: optional architecture tag for which to add a
870
870
            query clause if present.
871
871
        """
883
883
 
884
884
        # Add query clause that filters on pocket if the latter is provided.
885
885
        if pocket:
886
 
            queries.append('PackageBuild.pocket=%s' % sqlvalues(pocket))
 
886
            if not isinstance(pocket, list):
 
887
                pocket = (pocket,)
 
888
 
 
889
            queries.append('PackageBuild.pocket IN %s' % sqlvalues(pocket))
887
890
 
888
891
        # Add query clause that filters on architecture tag if provided.
889
892
        if arch_tag is not None: