~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

Show diffs side-by-side

added added

removed removed

Lines of Context:
1004
1004
                BuildStatus.FAILEDTOUPLOAD,
1005
1005
                BuildStatus.MANUALDEPWAIT,
1006
1006
                ),
1007
 
             # The 'pending' count is a list because we may append to it
1008
 
             # later.
1009
1007
            'pending': [
1010
1008
                BuildStatus.BUILDING,
 
1009
                BuildStatus.UPLOADING,
1011
1010
                ],
1012
1011
            'succeeded': (
1013
1012
                BuildStatus.FULLYBUILT,
1023
1022
                BuildStatus.FAILEDTOUPLOAD,
1024
1023
                BuildStatus.MANUALDEPWAIT,
1025
1024
                BuildStatus.BUILDING,
 
1025
                BuildStatus.UPLOADING,
1026
1026
                BuildStatus.FULLYBUILT,
1027
1027
                BuildStatus.SUPERSEDED,
1028
1028
                ],
1109
1109
        elif self.is_ppa:
1110
1110
            if pocket != PackagePublishingPocket.RELEASE:
1111
1111
                return InvalidPocketForPPA()
 
1112
        elif self.is_copy:
 
1113
            # Any pocket is allowed for COPY archives, otherwise it can
 
1114
            # make the buildd-manager throw exceptions when dispatching
 
1115
            # existing builds after a series is released.
 
1116
            return
1112
1117
        else:
1113
1118
            # Uploads to the partner archive are allowed in any distroseries
1114
1119
            # state.
2007
2012
                ),
2008
2013
            'pending': (
2009
2014
                BuildStatus.BUILDING,
 
2015
                BuildStatus.UPLOADING,
2010
2016
                BuildStatus.NEEDSBUILD,
2011
2017
                ),
2012
2018
            'succeeded': (