~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/soyuz/interfaces/packagecopyjob.py

  • Committer: Julian Edwards
  • Date: 2011-12-22 15:25:55 UTC
  • mto: This revision was merged to the branch mainline in revision 14591.
  • Revision ID: julian.edwards@canonical.com-20111222152555-fcu2l7ywmdb3ipjm
Add PackageCopyJob.getIncompleteJobsForArchive() method in preparation for showing them on the PPA page

Show diffs side-by-side

added added

removed removed

Lines of Context:
182
182
            `DistroSeriesDifference.parent_source_version`.
183
183
        """
184
184
 
 
185
    def getIncompleteJobsForArchive(archive):
 
186
        """Find incomplete jobs for each package in `archive`.
 
187
 
 
188
        Incomplete jobs are ones in status WAITING, RUNNING or FAILED.
 
189
 
 
190
        :param archive: The target `IArchive` for the job.
 
191
        :return: An iterable of `PackageCopyJob`.
 
192
        """
 
193
 
185
194
 
186
195
class IPlainPackageCopyJob(IRunnableJob):
187
196
    """A no-frills job to copy packages between `IArchive`s."""