1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-02-26 15:54:15 +01:00

OP-1695 Ubuntu PPA: remove dirty from version-info.json

This commit is contained in:
James Duley 2015-03-03 17:51:43 +13:00
parent 54df9d1ea0
commit 655e907506
2 changed files with 3 additions and 3 deletions

View File

@ -887,9 +887,8 @@ build-info:
##############################
DIST_VER_INFO := $(DIST_DIR)/version-info.json
MODIFIED_FILES := $(shell git ls-files -m)
$(DIST_VER_INFO): .git/index $(MODIFIED_FILES) | $(DIST_DIR)
$(DIST_VER_INFO): .git/index | $(DIST_DIR)
$(V1) $(VERSION_INFO) --jsonpath="$(DIST_DIR)"

View File

@ -228,7 +228,8 @@ class Repo:
json_data['last_tag'] = self._last_tag
json_data['num_commits_past_tag'] = self._num_commits_past_tag
json_data['branch'] = self._branch
json_data['dirty'] = self._dirty
# version-info.json is for use with git archive which doesn't take in dirty changes
json_data['dirty'] = False
json_path = os.path.join(path, 'version-info.json')
with open(json_path, 'w') as json_file: