Allow limiting of packagesets when running InitialiseDistroSeries

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

Bug Description

The InitialiseDistroSeries infrastructure should allow derivers to limit the scope of packages copied to the child distroseries by specifying the packagesets that should be copied to the child.

Related branches

Steve Kowalik (stevenk)
tags: added: derivation
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: qa-ok
Revision history for this message
Launchpad QA Bot (lpqabot) wrote : Bug fixed by a commit
Changed in soyuz:
assignee: nobody → Steve Kowalik (stevenk)
milestone: none → 10.11
tags: added: qa-needstesting
removed: qa-ok
Changed in soyuz:
status: New → Fix Committed
Revision history for this message
Steve Kowalik (stevenk) wrote :

This has already been QA'd on dogfood, see comment 1.

tags: added: 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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.