scripts/release/release.py
changeset 1822 c6bb25fa7f7b
parent 1816 07743b5295d3
child 1823 f55d0e1d3f82
equal deleted inserted replaced
1821:6a548cbb0f7e 1822:c6bb25fa7f7b
    45 import os
    45 import os
    46 import re
    46 import re
    47 import subprocess
    47 import subprocess
    48 import sys
    48 import sys
    49 
    49 
       
    50 import error
       
    51 
    50 
    52 
    51 # Default repository URLs for Melange and the Google release
    53 # Default repository URLs for Melange and the Google release
    52 # repository.
    54 # repository.
    53 MELANGE_REPOS = 'http://soc.googlecode.com/svn'
    55 MELANGE_REPOS = 'http://soc.googlecode.com/svn'
    54 GOOGLE_SOC_REPOS = 'https://soc-google.googlecode.com/svn'
    56 GOOGLE_SOC_REPOS = 'https://soc-google.googlecode.com/svn'
    57 # Regular expression matching an apparently well formed Melange
    59 # Regular expression matching an apparently well formed Melange
    58 # release number.
    60 # release number.
    59 MELANGE_RELEASE_RE = re.compile(r'\d-\d-\d{8}')
    61 MELANGE_RELEASE_RE = re.compile(r'\d-\d-\d{8}')
    60 
    62 
    61 
    63 
    62 class Error(Exception):
    64 class Error(error.Error):
    63     pass
    65     pass
    64 
    66 
    65 
    67 
    66 class SubprocessFailed(Error):
    68 class SubprocessFailed(Error):
    67     """A subprocess returned a non-zero error code."""
    69     """A subprocess returned a non-zero error code."""