Allow limiting of packagesets when running InitialiseDistroSeries
Bug #656295 reported by
Steve Kowalik
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
Undecided
|
Steve Kowalik |
Bug Description
The InitialiseDistr
Related branches
lp:~stevenk/launchpad/ids-limit-packagesets
- Jelmer Vernooij (community): Approve (code)
-
Diff: 303 lines (+129/-15)4 files modifiedlib/lp/soyuz/interfaces/packagecloner.py (+5/-2)
lib/lp/soyuz/model/packagecloner.py (+46/-8)
lib/lp/soyuz/scripts/initialise_distroseries.py (+16/-2)
lib/lp/soyuz/scripts/tests/test_initialise_distroseries.py (+62/-3)
tags: | added: derivation |
Changed in soyuz: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
I've QA'd this branch successfully on dogfood using the following script:
import transaction interfaces. person import IPersonSet interfaces. distribution import IDistributionSet scripts. initialise_ distroseries import InitialiseDistr oSeries
from zope.component import getUtility
from lp.registry.
from lp.registry.
from lp.soyuz.
maverick = getUtility( IDistributionSe t)['ubuntu' ]['maverick' ] IPersonSet) .getByName( 'soyuz- team') IDistributionSe t).new( 'deribuntu' , text, text, text, text, 'example.com', soyuz_team, soyuz_team) newSeries( 'dangerous' , text, text, text, text, '11.01', maverick, soyuz_team)
soyuz_team = getUtility(
text = 'The Deribuntu'
deribuntu = getUtility(
text = 'The Dangerous Deribuntu'
dangerous = deribuntu.
ids = InitialiseDistr oSeries( dangerous, arches=('i386',), packagesets= ('kernel' ,), rebuild=True) commit( ) updatePackageCo unt()
ids.check()
ids.initialise()
transaction.
dangerous.
This sucessfully created a derivate distroseries with 20 source packages, no binary packages, and 20 build records.