contrib/bkr: detect GIT_TARGETBRANCH for new 1.0-beta builds

This commit is contained in:
Thomas Haller 2015-01-29 13:38:05 +01:00
parent 9b92f07ce8
commit d592c86cf8

View file

@ -586,6 +586,8 @@ class CmdSubmit(CmdBase):
return 'master' # 0.9.10-rc
if re.match(r'^.*/NetworkManager-0\.9\.11\..*\.git20141022.e28ee14.el7.x86_64.rpm$', u):
return 'master' # rhel-7.1-rc
if re.match(r'^.*/NetworkManager-1.0.[0-9]+-[0-9]+\.git20150121\.b4ea599c\.el7.x86_64.rpm$', u):
return 'master' # rhel-7.1-rc
raise Exception("could not detect the target branch. Try setting as environment variable GIT_TARGETBRANCH%s" % (
((" (or try setting "+key_name+")") if key_name == 'GIT_TARGETBRANCH' else '')))