diff options
| author | David Cantrell <dcantrell@redhat.com> | 2010-04-14 12:17:57 -1000 |
|---|---|---|
| committer | David Cantrell <dcantrell@redhat.com> | 2010-04-14 12:18:38 -1000 |
| commit | 7ff2ed7b36bd357a5574f3e96d87c3c3e181e731 (patch) | |
| tree | 90acdb09bf4ffe77b1146989f1434b8184a85cee /scripts/makebumpver | |
| parent | dee628fe3903eb43c90e1f21100d439207c35161 (diff) | |
| download | anaconda-7ff2ed7b36bd357a5574f3e96d87c3c3e181e731.tar.gz anaconda-7ff2ed7b36bd357a5574f3e96d87c3c3e181e731.tar.xz anaconda-7ff2ed7b36bd357a5574f3e96d87c3c3e181e731.zip | |
Read ~/.rhbzauth in scripts/makebumpver
Using that file for the commit-msg hook, so use it here too.
Diffstat (limited to 'scripts/makebumpver')
| -rwxr-xr-x | scripts/makebumpver | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/makebumpver b/scripts/makebumpver index 699236864..368ee7fcc 100755 --- a/scripts/makebumpver +++ b/scripts/makebumpver @@ -38,6 +38,18 @@ class MakeBumpVer: self.password = None self.bz = None + authfile = os.path.realpath(os.getenv('HOME') + '/.rhbzauth') + if os.path.isfile(authfile): + f = open(authfile, 'r') + lines = map(lambda x: x.strip(), f.readlines()) + f.close() + + for line in lines: + if line.startswith('RHBZ_USER='): + self.username = line[10:].strip('"\'') + elif line.startswith('RHBZ_PASSWORD='): + self.password = line[14:].strip('"\'') + self.gituser = self._gitConfig('user.name') self.gitemail = self._gitConfig('user.email') |
