[master] Add transifex branch check to makebumpver
Chris Lumens
clumens at redhat.com
Fri Oct 10 18:42:19 UTC 2014
> @@ -428,7 +435,36 @@ class MakeBumpVer:
> f.writelines(bottom)
> f.close()
>
> + def check_transifex(self):
> + """
> + Make sure that the transifex branch matches the current git branch
> +
> + This is to prevent accidentally pushing translations to the wrong branch,
> + eg. when branching for a new release and .tx/config hasn't been updated
> + """
> + ret = True
> + section_name = "anaconda."+self.git_branch
Might want to protect against self.tx_config being None. I can't really
imagine someone doing a build not having a transifex config file, but we
could at least guard against that if it does happen.
- Chris
More information about the anaconda-patches
mailing list