Skip to content

Commit

Permalink
Don't update the package_metadata.json git info if we pass the redis …
Browse files Browse the repository at this point in the history
…server

bin deb/rpm package builds don't have a broken source directory.
  • Loading branch information
Dwight Hubbard committed May 23, 2017
1 parent b347dda commit 3439038
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,13 @@ def get_and_update_metadata():
if not os.path.exists('.git') and os.path.exists(METADATA_FILENAME):
with open(METADATA_FILENAME) as fh:
metadata = json.load(fh)
elif os.path.exists(METADATA_FILENAME) and os.environ.get('REDISLITE_SERVER_BIN', None):
with open(METADATA_FILENAME) as fh:
metadata = json.load(fh)
metadata['redis_server'] = REDIS_SERVER_METADATA
metadata['redis_bin'] = os.environ['REDISLITE_SERVER_BIN']
with open(METADATA_FILENAME, 'w') as fh:
json.dump(metadata, fh, indent=4)
else:
git = Git(version=setup_arguments['version'])
metadata = {
Expand Down

0 comments on commit 3439038

Please sign in to comment.