From: Mathias Klette Date: Thu, 20 Jun 2013 13:03:14 +0000 (+0200) Subject: debian_build: wheezy based git lib does not allow to use undefined attributes X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=10e1cdad8a50254adb54a471532b262adb6936c0;p=profitbricks%2Fjenkins-build-scripts.git debian_build: wheezy based git lib does not allow to use undefined attributes --- diff --git a/debian_build.py b/debian_build.py index 42a4c36..9fde8ec 100755 --- a/debian_build.py +++ b/debian_build.py @@ -126,11 +126,11 @@ if __name__ == '__main__': else: gitrepo.remotes[name].update({type: url}) # this would also be helpful, but is not yet included in git lib - gitrepo.name = gitrepo.remotes['origin']['fetch'].split('/')[-1].strip('.git') + repo_name = gitrepo.remotes['origin']['fetch'].split('/')[-1].strip('.git') else: - gitrepo.name = gitrepo.remotes.origin.url.split('/')[-1].strip('.git') + repo_name = gitrepo.remotes.origin.url.split('/')[-1].strip('.git') logger.info('Remotes: %s' % gitrepo.remotes) - logger.info('Repository Name: %s' % gitrepo.name) + logger.info('Repository Name: %s' % repo_name) # .. some local variables daily_date = BUILD_START.strftime('%Y%m%d%H%M%S') @@ -180,7 +180,7 @@ if __name__ == '__main__': # replace valid debian version chars that are invalid for git tagging new_tag = curr_version.replace('~', '_').replace(':', ',') # .. only take care of changelog automation if we want it to - if gitrepo.name in AUTO_CHANGELOG_REPONAMES: + if repo_name in AUTO_CHANGELOG_REPONAMES: do_autoincrement = True # reset actions if curr_dist == 'squeeze':