442 need_update = True |
442 need_update = True |
443 #fi |
443 #fi |
444 |
444 |
445 # Set target version if not set |
445 # Set target version if not set |
446 if not 'target_version' in ticket_data: |
446 if not 'target_version' in ticket_data: |
447 ticket_data['target_version'] = '1.3' if repo_name == 'zandronum-stable' else '2.0' |
447 ticket_data['target_version'] = '1.4' if repo_name == 'zandronum-stable' else '2.0' |
448 need_update = True |
448 need_update = True |
449 elif (ticket_data['target_version'] == '2.0' or ticket_data['target_version'] == '2.0-beta') \ |
449 elif (ticket_data['target_version'] == '2.0' or ticket_data['target_version'] == '2.0-beta') \ |
450 and repo_name == 'zandronum-stable': |
450 and repo_name == 'zandronum-stable': |
451 # Target version was 2.0 but this was just committed to zandronum-stable, adjust |
451 # Target version was 2.0 but this was just committed to zandronum-stable, adjust |
452 ticket_data['target_version'] = '1.3' |
452 ticket_data['target_version'] = '1.4' |
453 need_update = True |
453 need_update = True |
454 elif ticket_data['target_version'] == '2.0-beta': |
454 elif ticket_data['target_version'] == '2.0-beta': |
455 # Fix target version from 2.0-beta to 2.0 |
455 # Fix target version from 2.0-beta to 2.0 |
456 ticket_data['target_version'] = '2.0' |
456 ticket_data['target_version'] = '2.0' |
457 need_update = True |
457 need_update = True |