#
# Copyright (C) 2012 Jose A. Rivera <jarrpa@redhat.com>
#
-# $Date: 2012-06-05 16:01:53 -0500$
+# $Date: 2012-06-05 16:17:37 -0500$
#
# ---------------------------------------------------------------------------- #
#
# Globals ----------------------------------------------------------------------
#
verstr = '%(prog)s Pre-Alpha'
-idstr = '$Id: git_do_release.py 2012-06-05 16:01:53 -0500 Jose A. Rivera$'
+idstr = '$Id: git_do_release.py 2012-06-05 16:17:37 -0500 Jose A. Rivera$'
copystr = 'Copyright (C) 2012 Jose A. Rivera <jarrpa@redhat.com>'
gplstr = ' GNU General Public License, version 3'
version = '\n'.join([verstr, idstr[1:-1], copystr, gplstr])
# Search for matching files.
matches = []
reporoot = git('rev-parse --show-toplevel')
- if 'Globals' in pathsdict.keys and pathsdict['Globals']:
+ if 'Globals' in pathsdict.keys() and pathsdict['Globals']:
paths = pathsdict['Globals']
else:
paths = ['']
# currently working on the release branch.
has_release = False
on_release = False
- for branch in git('branch'):
- if branch[2:] == rebranch:
+ for branch in git('branch').split('\n'):
+ if rebranch in branch:
has_release = True
if branch[0] == '*':
on_release = True