@@ -184,6 +184,14 @@ def prompt_for_bug(settings):
184184 else :
185185 log_info ('Enter alias (optional): %s' % settings .alias )
186186
187+ if not hasattr (settings , 'cf_stabilisation_atoms' ):
188+ package_list_msg = 'Enter the Package list for this bug (optional): '
189+ line = input (package_list_msg )
190+ if len (line ):
191+ settings .cf_stabilisation_atoms = line
192+ elif settings .component == "Stabilisation" :
193+ log_info ('Enter a Package list (optional): %s' % settings .cf_stabilisation_atoms )
194+
187195 if not hasattr (settings , 'assigned_to' ):
188196 assign_msg = 'Enter assignee (eg. [email protected] ) (optional): ' 189197 line = input (assign_msg )
@@ -248,6 +256,8 @@ def show_bug_info(bug, settings):
248256 'last_change_time' : 'Updated' ,
249257 'cc' : 'CC' ,
250258 'see_also' : 'See Also' ,
259+ 'cf_runtime_testing_required' : 'Runtime testing required' ,
260+ 'cf_stabilisation_atoms' : 'Package list' ,
251261 }
252262 SkipFields = ['assigned_to_detail' , 'cc_detail' , 'creator_detail' , 'id' ,
253263 'is_confirmed' , 'is_creator_accessible' , 'is_cc_accessible' ,
@@ -420,6 +430,8 @@ def modify(settings):
420430 params ['ids' ] = [settings .bugid ]
421431 if hasattr (settings , 'alias' ):
422432 params ['alias' ] = settings .alias
433+ if hasattr (settings , 'cf_stabilisation_atoms' ):
434+ params ['cf_stabilisation_atoms' ] = settings .cf_stabilisation_atoms
423435 if hasattr (settings , 'assigned_to' ):
424436 params ['assigned_to' ] = settings .assigned_to
425437 if hasattr (settings , 'blocks_add' ):
@@ -584,6 +596,8 @@ def post(settings):
584596 print ('%-12s: %s' % ('Severity' , settings .severity ))
585597 if hasattr (settings , 'alias' ):
586598 print ('%-12s: %s' % ('Alias' , settings .alias ))
599+ if hasattr (settings , 'cf_stabilisation_atoms' ):
600+ print ('%-12s: %s' % ('Package list' , settings .cf_stabilisation_atoms ))
587601 if hasattr (settings , 'assigned_to' ):
588602 print ('%-12s: %s' % ('Assigned to' , settings .assigned_to ))
589603 if hasattr (settings , 'cc' ):
@@ -630,6 +644,8 @@ def post(settings):
630644 params ['cc' ] = settings .cc
631645 if hasattr (settings , 'url' ):
632646 params ['url' ] = settings .url
647+ if hasattr (settings , 'cf_stabilisation_atoms' ):
648+ params ['cf_stabilisation_atoms' ] = settings .cf_stabilisation_atoms
633649
634650 result = settings .call_bz (settings .bz .Bug .create , params )
635651 log_info ('Bug %d submitted' % result ['id' ])
@@ -639,10 +655,10 @@ def search(settings):
639655 """Performs a search on the bugzilla database with
640656the keywords given on the title (or the body if specified).
641657 """
642- valid_keys = ['alias' , 'assigned_to' , 'component' , 'creator' ,
643- 'limit' , 'offset' , 'op_sys' , 'platform' ,
644- 'priority ' , 'product ' , 'resolution ' , 'severity ' ,
645- 'version' , ' whiteboard' , 'cc ' ]
658+ valid_keys = ['alias' , 'assigned_to' , 'cc' , ' component' , 'creator' ,
659+ 'limit' , 'offset' , 'op_sys' , 'platform' , 'priority' ,
660+ 'product ' , 'resolution ' , 'severity ' , 'version ' ,
661+ 'whiteboard' , 'cf_stabilisation_atoms ' ]
646662
647663 params = {}
648664 d = vars (settings )
0 commit comments