|
|
@ -24,7 +24,15 @@ class RsyncSRPMSReleaser(RsyncReleaser): |
|
|
|
target=None, releaser_config=None, no_cleanup=False, |
|
|
|
target=None, releaser_config=None, no_cleanup=False, |
|
|
|
test=False, auto_accept=False, |
|
|
|
test=False, auto_accept=False, |
|
|
|
prefix="temp_dir=", **kwargs): |
|
|
|
prefix="temp_dir=", **kwargs): |
|
|
|
RsyncReleaser.__init__(self, name, tag, build_dir, config, |
|
|
|
if target == 'branch': |
|
|
|
|
|
|
|
target = run_command('git symbolic-ref --short HEAD') |
|
|
|
|
|
|
|
if target in [ 'el5', 'el6', 'el7', 'sme9', 'sme10' ]: |
|
|
|
|
|
|
|
# Call ourselve with the new target |
|
|
|
|
|
|
|
self.__init__(name, tag, build_dir, config, |
|
|
|
|
|
|
|
user_config, target, releaser_config, no_cleanup, test, |
|
|
|
|
|
|
|
auto_accept, **kwargs) |
|
|
|
|
|
|
|
else: |
|
|
|
|
|
|
|
RsyncReleaser.__init__(self, name, tag, build_dir, config, |
|
|
|
user_config, target, releaser_config, no_cleanup, test, |
|
|
|
user_config, target, releaser_config, no_cleanup, test, |
|
|
|
auto_accept, **kwargs) |
|
|
|
auto_accept, **kwargs) |
|
|
|
|
|
|
|
|
|
|
|