Don't use the Switch module

[?]
Mar 12, 2012, 7:41 PM
EUWLW7FYGZK4HKBA73SQDM4FWZGR5F6AGJW6WYZI2ECCIDWF5MRAC

Dependencies

  • [2] HDMOHBZM Hydra/57: Unknown failure -> Failed
  • [3] YFPZ46YK * hydra: added variant of build input type, 'build output (same system)' to allow better continous integration in one jobset for multiple system. it makes sure that the system of the build that is passed as input for a job has the same system as the job.
  • [4] 7YBYT2LQ
  • [5] OG7BEM57
  • [6] FHAVPTZ6 Hydra/23: added some X-headers with meta info in email notifications, added more descriptive status
  • [7] CXRCPDSQ * added support for twitter notification

Change contents

  • replacement in src/script/hydra-build at line 20
    [3.2353][3.0:12]()
    use Switch;
    [3.2353]
    [3.2987]
    use feature qw/switch/;
  • replacement in src/script/hydra-build at line 64
    [2.27][3.102:330](),[3.102][3.102:330]()
    switch ($buildstatus) {
    case 0 { $status = "Success"; }
    case 1 { $status = "Failed with non-zero exit code"; }
    case 2 { $status = "Dependency failed"; }
    case 4 { $status = "Cancelled"; }
    [2.27]
    [3.330]
    given ($buildstatus) {
    when (0) { $status = "Success"; }
    when (1) { $status = "Failed with non-zero exit code"; }
    when (2) { $status = "Dependency failed"; }
    when (4) { $status = "Cancelled"; }