~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to scripts/ftpmaster-tools/initialise-from-parent.py

Fix initseries to support multiple parents as an argument.

Show diffs side-by-side

added added

removed removed

Lines of Context:
76
76
    try:
77
77
        log.debug('Check empty mutable queues in parentseries')
78
78
        log.debug('Check for no pending builds in parentseries')
79
 
        log.debug('Copying distroarchseries from parent '
 
79
        log.debug('Copying distroarchseries from parent(s) '
80
80
                      'and setting nominatedarchindep.')
81
81
        arches = ()
82
82
        if options.arches is not None:
87
87
        # good, at which point this script will be obsolete.
88
88
        parent, distroseries.previous_series = (
89
89
            distroseries.previous_series, None)
90
 
        ids = InitialiseDistroSeries(parent, distroseries, arches)
 
90
        ids = InitialiseDistroSeries(distroseries, [parent], arches)
91
91
        ids.check()
92
 
        log.debug('initialising from parent, copying publishing records.')
 
92
        log.debug('initialising from parent(s), copying publishing records.')
93
93
        ids.initialise()
94
94
    except InitialisationError, e:
95
95
        log.error(e)