Add parameter to not copy binaries in InitialiseDistroSeries

Bug #644258 reported by Steve Kowalik
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Undecided
Steve Kowalik

Bug Description

InitialiseDistroSeries should allow for the case of integrators not wanting binaries to be copied to the child distroseries.

Related branches

Steve Kowalik (stevenk)
Changed in soyuz:
assignee: nobody → Steve Kowalik (stevenk)
milestone: none → 10.10
Revision history for this message
Launchpad QA Bot (lpqabot) wrote : Bug fixed by a commit
tags: added: qa-needstesting
Changed in soyuz:
status: New → Fix Committed
Revision history for this message
Steve Kowalik (stevenk) wrote :

The tests passing were masking failures due to use of sampledata. I've fixed the issue in the second branch I've linked.

tags: added: qa-bad
removed: qa-needstesting
Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
tags: added: qa-needstesting
removed: qa-bad
Revision history for this message
Steve Kowalik (stevenk) wrote :

I've QA'd this branch successfully on dogfood using the following script:

import transaction
from zope.component import getUtility
from lp.registry.interfaces.person import IPersonSet
from lp.registry.interfaces.distribution import IDistributionSet
from lp.soyuz.scripts.initialise_distroseries import InitialiseDistroSeries

maverick = getUtility(IDistributionSet)['ubuntu']['maverick']
soyuz_team = getUtility(IPersonSet).getByName('soyuz-team')
text = 'The Deribuntu'
deribuntu = getUtility(IDistributionSet).new('deribuntu', text, text, text, text, 'example.com', soyuz_team, soyuz_team)
text = 'The Dangerous Deribuntu'
dangerous = deribuntu.newSeries('dangerous', text, text, text, text, '11.01', maverick, soyuz_team)

ids = InitialiseDistroSeries(dangerous, arches=('i386',), packagesets=('kernel',), rebuild=True)
ids.check()
ids.initialise()
transaction.commit()
dangerous.updatePackageCount()

This sucessfully created a derivate distroseries with 20 source packages, no binary packages, and 20 build records.

tags: added: derivation qa-ok
removed: qa-needstesting
Curtis Hovey (sinzui)
Changed in soyuz:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers