Skip to content
This repository has been archived by the owner on Jan 27, 2021. It is now read-only.

Commit

Permalink
fix forceVersion bug found by pyflakes
Browse files Browse the repository at this point in the history
  • Loading branch information
agroszer committed Jan 9, 2014
1 parent 8e40988 commit 7e74b9d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/keas/build/build.py
Expand Up @@ -270,14 +270,14 @@ def build(configFile, options):
defaultVersion = base.guessNextVersion(defaultVersion)
if options.forceVersion:
if options.forceVersion in projectVersions:
logger.error('Forced version %s already exists' % forceVersion)
logger.error('Forced version %s already exists' % options.forceVersion)
else:
defaultVersion = forceVersion
defaultVersion = options.forceVersion
projectVersion = base.getInput(
'Project Version', defaultVersion, options.useDefaults)

# Write out the new project config -- the pinned versions
projectConfigFilename = '%s-%s.cfg' %(projectName, projectVersion)
projectConfigFilename = '%s-%s.cfg' % (projectName, projectVersion)
logger.info('Writing project configuration file: ' + projectConfigFilename)
projectParser.write(open(projectConfigFilename, 'w'))

Expand Down

0 comments on commit 7e74b9d

Please sign in to comment.